diff options
author | Rich Trott <rtrott@gmail.com> | 2017-05-19 22:14:21 -0700 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-05-23 21:08:22 +0200 |
commit | b5b6f5d6a9a5402e55f5080928d740e12e7295a4 (patch) | |
tree | dd24440c7be97c971759646c9d58622462ea5378 /test/parallel/test-child-process-fork-ref2.js | |
parent | 47919b3b6f1592ce80ec3c07b0eaea64c1d7e4dc (diff) | |
download | node-new-b5b6f5d6a9a5402e55f5080928d740e12e7295a4.tar.gz |
test: check number of message events
When a no-op message event handler is used in a test, make it clear what
is expected by using `common.mustCall()` and `common.mustNotCall()`.
PR-URL: https://github.com/nodejs/node/pull/13125
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <mhdawson@ibm.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-fork-ref2.js')
-rw-r--r-- | test/parallel/test-child-process-fork-ref2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-fork-ref2.js b/test/parallel/test-child-process-fork-ref2.js index f114170630..f34d67ee17 100644 --- a/test/parallel/test-child-process-fork-ref2.js +++ b/test/parallel/test-child-process-fork-ref2.js @@ -29,7 +29,7 @@ if (process.argv[2] === 'child') { setTimeout(function() { console.log('child -> will this keep it alive?'); - process.on('message', common.noop); + process.on('message', common.mustNotCall()); }, 400); } else { |