From 9702153107130353324f02f2d38f103b37f71559 Mon Sep 17 00:00:00 2001 From: Brian White Date: Fri, 25 Mar 2016 14:31:57 -0400 Subject: [PATCH] test: fix flaky test-repl PR-URL: https://github.com/nodejs/node/pull/5914 Reviewed-By: Colin Ihrig --- test/parallel/test-repl.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index 3d2cab6334bd25..dcafb9973e1978 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -15,7 +15,7 @@ const prompt_npm = 'npm should be run outside of the ' + 'node repl, in your normal shell.\n' + '(Press Control-D to exit.)\n'; const expect_npm = prompt_npm + prompt_unix; -var server_tcp, server_unix, client_tcp, client_unix, timer, replServer; +var server_tcp, server_unix, client_tcp, client_unix, replServer; // absolute path to test/fixtures/a.js @@ -45,7 +45,6 @@ function send_expect(list) { function clean_up() { client_tcp.end(); client_unix.end(); - clearTimeout(timer); } function strict_mode_error_test() { @@ -449,7 +448,3 @@ function unix_test() { } unix_test(); - -timer = setTimeout(function() { - assert.fail(null, null, 'Timeout'); -}, 5000);