Skip to content

Commit 23bb0f6

Browse files
committed
squash: adjust margin for ppc64
1 parent 30ae6ee commit 23bb0f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-fs-stat-date.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ await (await fsPromises.open(filepath, 'w')).close();
1919

2020
// Date might round down timestamp
2121
function closeEnough(actual, expected, margin) {
22+
// On ppc64, value is rounded to seconds
23+
if (process.arch === 'ppc64') {
24+
margin += 1000;
25+
}
2226
assert.ok(Math.abs(Number(actual - expected)) < margin,
2327
`expected ${expected} ± ${margin}, got ${actual}`);
2428
}

0 commit comments

Comments
 (0)