Skip to content

Commit

Permalink
test: increase spin for eventloop test on s390
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mhdawson committed Dec 10, 2024
1 parent 142adef commit f9562c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/sequential/sequential.status
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ test-tls-securepair-client: PASS, FLAKY
# 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

[$system==linux && $arch==ppc64]
# https://github.com/nodejs/node/issues/50740
test-single-executable-application-assets-raw: PASS, FLAKY
Expand Down
5 changes: 5 additions & 0 deletions test/sequential/test-performance-eventloopdelay.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

const common = require('../common');
const assert = require('assert');
const os = require('os');
const {
monitorEventLoopDelay
} = require('perf_hooks');
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f9562c9

Please sign in to comment.