From f11379d25baa86abb05a888434c1279d80b44220 Mon Sep 17 00:00:00 2001 From: Azard Date: Tue, 8 Aug 2017 03:15:19 +0800 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Rich Trott --- test/parallel/test-readline-interface.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-readline-interface.js b/test/parallel/test-readline-interface.js index 5d9f12cd559dc3..dd96e17362efcc 100644 --- a/test/parallel/test-readline-interface.js +++ b/test/parallel/test-readline-interface.js @@ -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,