| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e70e974 commit 7816e04
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,16 +15,16 @@ if (process.env.BE_CHILD) { | |||
| 15 | 15 | ||
| 16 | 16 | child.once('message', common.mustCall((msg) => { | |
| 17 | 17 | assert.strictEqual(msg.cmd, 'started'); | |
| 18 | + assert.strictEqual(msg.url, undefined); | ||
| 18 | 19 | ||
| 19 | - child.send({ cmd: 'open', args: [] }); | ||
| 20 | + child.send({ cmd: 'open' }); | ||
| 20 | 21 | child.once('message', common.mustCall(wasOpenedHandler)); | |
| 21 | 22 | })); | |
| 22 | 23 | ||
| 23 | 24 | function wasOpenedHandler(msg) { | |
| 24 | 25 | assert.strictEqual(msg.cmd, 'url'); | |
| 25 | - const port = url.parse(msg.url).port; | ||
| 26 | + const { port } = url.parse(msg.url); | ||
| 26 | 27 | ping(port, common.mustSucceed(() => { | |
| 27 | - // Inspector is already open, and won't be reopened, so args don't matter. | ||
| 28 | 28 | child.send({ cmd: 'dispose' }); | |
| 29 | 29 | child.once('message', common.mustCall(wasDisposedWhenOpenHandler)); | |
| 30 | 30 | firstPort = port; | |
@@ -35,7 +35,7 @@ if (process.env.BE_CHILD) { | |||
| 35 | 35 | assert.strictEqual(msg.cmd, 'url'); | |
| 36 | 36 | assert.strictEqual(msg.url, undefined); | |
| 37 | 37 | ping(firstPort, (err) => { | |
| 38 | - assert(err); | ||
| 38 | + assert(err, 'expected ping to inspector port to fail'); | ||
| 39 | 39 | child.send({ cmd: 'dispose' }); | |
| 40 | 40 | child.once('message', common.mustCall(wasReDisposedHandler)); | |
| 41 | 41 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments