Skip to content

Commit f640baf

Browse files
santigimenoevanlucas
authored andcommitted
test: fix flaky test-force-repl-with-eval
Remove the timer just in case the test takes longer to complete. PR-URL: #9460 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 4c4132e commit f640baf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎test/parallel/test-force-repl-with-eval.js‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
'use strict';
2-
constcommon=require('../common');
2+
require('../common');
33
constassert=require('assert');
44
constspawn=require('child_process').spawn;
55

66
// spawn a node child process in "interactive" mode (force the repl) and eval
77
constcp=spawn(process.execPath,['-i','-e','console.log("42")']);
88
vargotToEnd=false;
9-
consttimeoutId=setTimeout(function(){
10-
thrownewError('timeout!');
11-
},common.platformTimeout(1000));// give node + the repl 1 second to boot up
129

1310
cp.stdout.setEncoding('utf8');
1411

1512
varoutput='';
1613
cp.stdout.on('data',function(b){
1714
output+=b;
1815
if(output==='> 42\n'){
19-
clearTimeout(timeoutId);
2016
gotToEnd=true;
2117
cp.kill();
2218
}

0 commit comments

Comments
(0)