mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 20:25:12 -05:00
chore: fix failing netTcpListenCloseWhileIterating test on some machines (#11552)
This commit is contained in:
parent
a13db3650e
commit
ecb4c9492f
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ unitTest(
|
|||
unitTest(
|
||||
{ perms: { net: true } },
|
||||
async function netTcpListenCloseWhileIterating(): Promise<void> {
|
||||
const listener = Deno.listen({ port: 8000 });
|
||||
const listener = Deno.listen({ port: 8001 });
|
||||
const nextWhileClosing = listener[Symbol.asyncIterator]().next();
|
||||
listener.close();
|
||||
assertEquals(await nextWhileClosing, { value: undefined, done: true });
|
||||
|
|
Loading…
Add table
Reference in a new issue