Skip to content

Commit 2192528

Browse files
mscdexevanlucas
authored andcommitted
test: fix flaky test-repl
PR-URL: #5914 Reviewed-By: Colin Ihrig <[email protected]>
1 parent 40847b0 commit 2192528

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() {
@@ -463,7 +462,3 @@ function unix_test() {
463462
}
464463

465464
unix_test();
466-
467-
timer = setTimeout(function() {
468-
assert.fail(null, null, 'Timeout');
469-
}, 5000);

0 commit comments

Comments
 (0)