fix: flaky worker test (#11540)

This commit is contained in:
Bartek Iwańczuk 2021-07-28 13:12:45 +02:00 committed by GitHub
parent 7f3a34eeb8
commit c198535caf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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 () => {

View file

@ -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();
}, },