mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
fix: flaky worker test (#11540)
This commit is contained in:
parent
7f3a34eeb8
commit
c198535caf
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||||
const listener = Deno.listen({ hostname: "127.0.0.1", port: 4500 });
|
||||
const listener = Deno.listen({ hostname: "127.0.0.1", port: 4506 });
|
||||
postMessage("ready");
|
||||
for await (const conn of listener) {
|
||||
(async () => {
|
||||
|
|
|
@ -729,7 +729,7 @@ Deno.test({
|
|||
await result;
|
||||
|
||||
assert(worker);
|
||||
const response = await fetch("http://localhost:4500");
|
||||
const response = await fetch("http://localhost:4506");
|
||||
assert(await response.arrayBuffer());
|
||||
worker.terminate();
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue