Permalink
Browse files

test: add more descriptive err message to assert

PR-URL: #23118
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information...
Josh-Broomfield authored and danbev committed Sep 27, 2018
1 parent 097896b commit 2f36cb41251719b0d53940d386ab15fe016c58d5
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/parallel/test-child-process-disconnect.js
@@ -93,7 +93,11 @@ if (process.argv[2] === 'child') {
// ready to be disconnected
if (data === 'ready') {
child.disconnect();
assert.throws(child.disconnect.bind(child), Error);
assert.throws(
child.disconnect.bind(child),
{
code: 'ERR_IPC_DISCONNECTED'
});
return;
}

0 comments on commit 2f36cb4

Please sign in to comment.