+12
-4
lines changedFilter options
+12
-4
lines changed Original file line number Diff line number Diff line change
@@ -52,8 +52,12 @@ if (process.argv[2] === 'child') {
52
52
child.stderr.on('data', (d) => { errData = Buffer.concat([ errData, d ]); });
53
53
child.stdout.on('data', (d) => { outData = Buffer.concat([ outData, d ]); });
54
54
55
-
child.on('close', common.mustCall((code) => {
56
-
assert.strictEqual(code, 1);
55
+
child.on('close', common.mustCall((code, signal) => {
56
+
if (signal) {
57
+
console.log(`Child closed with signal: ${signal}`);
58
+
} else {
59
+
assert.strictEqual(code, 1);
60
+
}
57
61
assert.match(outData.toString(), heartbeatMsg,
58
62
'did not crash until we reached offending line of code ' +
59
63
`(found ${outData})`);
Original file line number Diff line number Diff line change
@@ -55,8 +55,12 @@ if (process.argv[2] === 'child') {
55
55
child.stderr.on('data', (d) => { errData = Buffer.concat([ errData, d ]); });
56
56
child.stdout.on('data', (d) => { outData = Buffer.concat([ outData, d ]); });
57
57
58
-
child.on('close', common.mustCall((code) => {
59
-
assert.strictEqual(code, 1);
58
+
child.on('close', common.mustCall((code, signal) => {
59
+
if (signal) {
60
+
console.log(`Child closed with signal: ${signal}`);
61
+
} else {
62
+
assert.strictEqual(code, 1);
63
+
}
60
64
assert.match(outData.toString(), heartbeatMsg,
61
65
'did not crash until we reached offending line of code ' +
62
66
`(found ${outData})`);
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4