mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
test: add ChildProcess.prototype.killed test case
This commit is contained in:
1 parent
6bd0bcd5af
commit
c8646e0c41
1 file changed
+2
@@ -58,7 +58,9 @@ cat.on('exit', function(code, signal) {
|
||||
termSignal = signal;
|
||||
});
|
||||
|
||||
assert.equal(cat.killed, false);
|
||||
cat.kill();
|
||||
assert.equal(cat.killed, true);
|
||||
|
||||
process.on('exit', function() {
|
||||
assert.strictEqual(exitCode, null);
|
||||
|
||||
Reference in new issue
Block a user