Skip to content

Commit f11379d

Browse files
AzardTrott
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 24c4505 commit f11379d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-readline-interface.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ function isWarned(emitter) {
331331
// over the default crlfDelay but within the setting value
332332
{
333333
const fi = new FakeInput();
334-
const delay = 200;
335-
const crlfDelay = 500;
334+
const delay = 125;
335+
const crlfDelay = common.platformTimeout(1000);
336336
const rli = new readline.Interface({
337337
input: fi,
338338
output: fi,

0 commit comments

Comments
 (0)