Skip to content

Commit 9702153

Browse files
mscdexMyles Borins
authored andcommitted
test: fix flaky test-repl
PR-URL: #5914 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent a0a2e69 commit 9702153

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/parallel/test-repl.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const prompt_npm = 'npm should be run outside of the ' +
1515
'node repl, in your normal shell.\n' +
1616
'(Press Control-D to exit.)\n';
1717
const expect_npm = prompt_npm + prompt_unix;
18-
var server_tcp, server_unix, client_tcp, client_unix, timer, replServer;
18+
var server_tcp, server_unix, client_tcp, client_unix, replServer;
1919

2020

2121
// absolute path to test/fixtures/a.js
@@ -45,7 +45,6 @@ function send_expect(list) {
4545
function clean_up() {
4646
client_tcp.end();
4747
client_unix.end();
48-
clearTimeout(timer);
4948
}
5049

5150
function strict_mode_error_test() {
@@ -449,7 +448,3 @@ function unix_test() {
449448
}
450449

451450
unix_test();
452-
453-
timer = setTimeout(function() {
454-
assert.fail(null, null, 'Timeout');
455-
}, 5000);

0 commit comments

Comments
 (0)