Skip to content

Commit 8dfc283

Browse files
AzardMylesBorins
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 8604772 commit 8dfc283

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
@@ -262,8 +262,8 @@ function isWarned(emitter) {
262262
// over the default crlfDelay but within the setting value
263263
{
264264
const fi = new FakeInput();
265-
const delay = 200;
266-
const crlfDelay = 500;
265+
const delay = 125;
266+
const crlfDelay = common.platformTimeout(1000);
267267
const rli = new readline.Interface({
268268
input: fi,
269269
output: fi,

0 commit comments

Comments
 (0)