mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 13:44:47 +00: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.
|
// 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");
|
postMessage("ready");
|
||||||
for await (const conn of listener) {
|
for await (const conn of listener) {
|
||||||
(async () => {
|
(async () => {
|
||||||
|
|
|
@ -729,7 +729,7 @@ Deno.test({
|
||||||
await result;
|
await result;
|
||||||
|
|
||||||
assert(worker);
|
assert(worker);
|
||||||
const response = await fetch("http://localhost:4500");
|
const response = await fetch("http://localhost:4506");
|
||||||
assert(await response.arrayBuffer());
|
assert(await response.arrayBuffer());
|
||||||
worker.terminate();
|
worker.terminate();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue