From 2eb847849fc133e39d64798bee01252d9f3c4b58 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 26 Mar 2013 10:17:47 -0700 Subject: [PATCH] test: Use 'close' event in simple/test-repl-timeout-throw --- test/simple/test-repl-timeout-throw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simple/test-repl-timeout-throw.js b/test/simple/test-repl-timeout-throw.js index 0cafa4dcbe..f70e888712 100644 --- a/test/simple/test-repl-timeout-throw.js +++ b/test/simple/test-repl-timeout-throw.js @@ -69,7 +69,7 @@ child.stdout.once('data', function() { } }); -child.on('exit', function(c) { +child.on('close', function(c) { assert(!c); // make sure we got 3 throws, in the end. var lastLine = stdout.trim().split(/\r?\n/).pop();