| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 53f2371 commit 79a277e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,11 +28,11 @@ async function test() { | |||
| 28 | 28 | for (let i = 0; i < 10000; i++) { | |
| 29 | 29 | const { port1, port2 } = new MessageChannel(); | |
| 30 | 30 | worker.postMessage({ port: port2 }, [ port2 ]); | |
| 31 | - await once(port1, 'message'); // 'complexObject' | ||
| 31 | + assert.deepStrictEqual(await once(port1, 'message'), ['firstMessage']); | ||
| 32 | 32 | assert.deepStrictEqual(await once(port1, 'message'), ['lastMessage']); | |
| 33 | 33 | } | |
| 34 | 34 | ||
| 35 | - worker.terminate(); | ||
| 35 | + await worker.terminate(); | ||
| 36 | 36 | } | |
| 37 | 37 | ||
| 38 | 38 | test().then(common.mustCall()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments