summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSantiago Gimeno <santiago.gimeno@gmail.com>2016-11-04 11:01:26 +0100
committerSantiago Gimeno <santiago.gimeno@gmail.com>2016-11-06 09:17:47 +0100
commit686b334836d0bfb1a83b61ba0a674dcd72d58727 (patch)
tree8645bdb41142d3bec916493f896a5c515e7cd9f7 /test
parent7dd3fb872d21a64f44b602b2092a4c2328e2d819 (diff)
downloadnode-new-686b334836d0bfb1a83b61ba0a674dcd72d58727.tar.gz
test: fix flaky test-force-repl-with-eval
Remove the timer just in case the test takes longer to complete. PR-URL: https://github.com/nodejs/node/pull/9460 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-force-repl-with-eval.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/parallel/test-force-repl-with-eval.js b/test/parallel/test-force-repl-with-eval.js
index a285db8e57..e5044ba59d 100644
--- a/test/parallel/test-force-repl-with-eval.js
+++ b/test/parallel/test-force-repl-with-eval.js
@@ -1,14 +1,11 @@
'use strict';
-const common = require('../common');
+require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;
// spawn a node child process in "interactive" mode (force the repl) and eval
const cp = spawn(process.execPath, ['-i', '-e', 'console.log("42")']);
var gotToEnd = false;
-const timeoutId = setTimeout(function() {
- throw new Error('timeout!');
-}, common.platformTimeout(1000)); // give node + the repl 1 second to boot up
cp.stdout.setEncoding('utf8');
@@ -16,7 +13,6 @@ var output = '';
cp.stdout.on('data', function(b) {
output += b;
if (output === '> 42\n') {
- clearTimeout(timeoutId);
gotToEnd = true;
cp.kill();
}