mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
test: Use 'close' event in simple/test-repl-timeout-throw
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user