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: https://github.com/nodejs/node/pull/14677 Ref: https://github.com/nodejs/node/issues/14674 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
24c45054e4
commit
f11379d25b
@ -331,8 +331,8 @@ function isWarned(emitter) {
|
||||
// over the default crlfDelay but within the setting value
|
||||
{
|
||||
const fi = new FakeInput();
|
||||
const delay = 200;
|
||||
const crlfDelay = 500;
|
||||
const delay = 125;
|
||||
const crlfDelay = common.platformTimeout(1000);
|
||||
const rli = new readline.Interface({
|
||||
input: fi,
|
||||
output: fi,
|
||||
|
Loading…
x
Reference in New Issue
Block a user