mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: increase spin for eventloop test on s390
It was excluded as it was failing intermittently. Likely that s390 was just so fast times were rounded down to 0. Increase the spin time on s390x only. Signed-off-by: Michael Dawson <midawson@redhat.com> PR-URL: https://github.com/nodejs/node/pull/56228 Refs: https://github.com/nodejs/node/issues/41286 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
1 parent
c062ffc242
commit
96a38044ee
2 files changed
+5
-4
No files matched your search
@@ -48,7 +48,3 @@ test-tls-securepair-client: PASS, FLAKY
|
||||
[$arch==arm]
|
||||
# https://github.com/nodejs/node/issues/49933
|
||||
test-watch-mode-inspect: SKIP
|
||||
|
||||
[$arch==s390x]
|
||||
# https://github.com/nodejs/node/issues/41286
|
||||
test-performance-eventloopdelay: PASS, FLAKY
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
const common = require('../common');
|
||||
const assert = require('assert');
|
||||
const os = require('os');
|
||||
const {
|
||||
monitorEventLoopDelay
|
||||
} = require('perf_hooks');
|
||||
@@ -51,9 +52,13 @@ const { sleep } = require('internal/util');
|
||||
}
|
||||
|
||||
{
|
||||
const s390x = os.arch() === 's390x';
|
||||
const histogram = monitorEventLoopDelay({ resolution: 1 });
|
||||
histogram.enable();
|
||||
let m = 5;
|
||||
if (s390x) {
|
||||
m = m * 2;
|
||||
}
|
||||
function spinAWhile() {
|
||||
sleep(1000);
|
||||
if (--m > 0) {
|
||||
|
||||
Reference in new issue
Block a user