| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 998d04d commit 4bb8d6a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,8 +58,10 @@ if (process.argv[2] === 'child') { | |||
| 58 | 58 | const child = fork(process.argv[1], ['child']); | |
| 59 | 59 | ||
| 60 | 60 | child.on('exit', function(code, signal) { | |
| 61 | - if (!subprocessKilled) | ||
| 62 | - throw new Error('subprocess died unexpectedly!'); | ||
| 61 | + if (!subprocessKilled) { | ||
| 62 | + assert.fail('subprocess died unexpectedly! ' + | ||
| 63 | + `code: ${code} signal: ${signal}`); | ||
| 64 | + } | ||
| 63 | 65 | }); | |
| 64 | 66 | ||
| 65 | 67 | const server = net.createServer(); | |
@@ -98,6 +100,8 @@ if (process.argv[2] === 'child') { | |||
| 98 | 100 | child.once('message', function(m) { | |
| 99 | 101 | assert.strictEqual(m.status, 'closed'); | |
| 100 | 102 | server.getConnections(function(err, num) { | |
| 103 | + assert.ifError(err); | ||
| 104 | + assert.strictEqual(num, count - (i + 1)); | ||
| 101 | 105 | closeSockets(i + 1); | |
| 102 | 106 | }); | |
| 103 | 107 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments