Skip to content

Commit 935d34b

Browse files
Azardaddaleax
authored andcommitted
test: fix test-readline-interface
Previous unit test delay is too short for parallel test on raspberry pi, it will fail sometimes. This PR use common.platformTimeout and widen the time gap. PR-URL: #14677 Ref: #14674 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent ef8ac7b commit 935d34b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-readline-interface.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ function isWarned(emitter) {
286286
// over the default crlfDelay but within the setting value
287287
{
288288
const fi = new FakeInput();
289-
const delay = 200;
290-
const crlfDelay = 500;
289+
const delay = 125;
290+
const crlfDelay = common.platformTimeout(1000);
291291
const rli = new readline.Interface({
292292
input: fi,
293293
output: fi,

0 commit comments

Comments
 (0)