Skip to content
Closed
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
test: fix domain-top-level-error-handler-throw
Check the stderr output in the `close` event as it's not guaranteed to
be fully available when the `exit` event is fired.
  • Loading branch information
santigimeno committed Dec 23, 2015
commit c52fdd9a3ca9b462e7971d25096617551e8bebed
4 changes: 3 additions & 1 deletion test/parallel/test-domain-top-level-error-handler-throw.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ if (process.argv[2] === 'child') {
stderrOutput += data.toString();
});

child.on('exit', function onChildExited(exitCode, signal) {
child.on('close', function onChildClosed() {
assert(stderrOutput.indexOf(domainErrHandlerExMessage) !== -1);
assert(stderrOutput.indexOf(internalExMessage) === -1);
});

child.on('exit', function onChildExited(exitCode, signal) {
var expectedExitCode = 7;
var expectedSignal = null;

Expand Down