Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix flaky test-repl #5914

Merged
merged 1 commit into from
Mar 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions test/parallel/test-repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -45,7 +45,6 @@ function send_expect(list) {
function clean_up() {
client_tcp.end();
client_unix.end();
clearTimeout(timer);
}

function strict_mode_error_test() {
Expand Down Expand Up @@ -463,7 +462,3 @@ function unix_test() {
}

unix_test();

timer = setTimeout(function() {
assert.fail(null, null, 'Timeout');
}, 5000);