diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2017-07-05 15:04:24 +0200 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2017-07-09 14:19:13 -0400 |
commit | 1b2733f272b77fb2beaa4b1f5ee600e8b9c36e14 (patch) | |
tree | a91619531705dd144306cc07e01a3cc8d23f3bd7 /test/parallel/test-process-kill-pid.js | |
parent | be20e9ecfe79bea30fdca0f5757c0c54a02ac062 (diff) | |
download | node-new-1b2733f272b77fb2beaa4b1f5ee600e8b9c36e14.tar.gz |
test: common.expectsError should be a must call
Wrap expectsError in mustCall to make sure it's really called
as expected.
PR-URL: https://github.com/nodejs/node/pull/14088
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'test/parallel/test-process-kill-pid.js')
-rw-r--r-- | test/parallel/test-process-kill-pid.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-process-kill-pid.js b/test/parallel/test-process-kill-pid.js index 74491710d2..994a19f5cc 100644 --- a/test/parallel/test-process-kill-pid.js +++ b/test/parallel/test-process-kill-pid.js @@ -42,7 +42,7 @@ const invalidPidArgument = common.expectsError({ code: 'ERR_INVALID_ARG_TYPE', type: TypeError, message: 'The "pid" argument must be of type Number' -}); +}, 6); assert.throws(function() { process.kill('SIGTERM'); }, invalidPidArgument); |