mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
ef8ac7b5ac
commit
935d34bd6b
1 file changed
+2
-2
@@ -286,8 +286,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,
|
||||
|
||||
Reference in new issue
Block a user