Skip to content

Commit 8e50413

Browse files
Trottevanlucas
authored andcommitted
test: fix flaky test-fs-read-buffer-tostring-fail
The test is memory intensive and times out occasionally on Raspberry Pi devices in CI. Successful test runs take about 90 seconds, but the devices time out after 120 seconds. That's not a lot of headroom. So let's skip the test on devices that have only modest amounts of memory. Fixes: #7042 PR-URL: #7575 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent fa99dad commit 8e50413

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/parallel/test-fs-read-buffer-tostring-fail.js

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
'use strict';
22

33
const common = require('../common');
4+
5+
if (!common.enoughTestMem) {
6+
const skipMessage = 'intensive toString tests due to memory confinements';
7+
common.skip(skipMessage);
8+
return;
9+
}
10+
411
const assert = require('assert');
512
const fs = require('fs');
613
const path = require('path');

0 commit comments

Comments
 (0)