summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/async_hooks_test.ts
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-06-13 12:05:23 -0600
committerGitHub <noreply@github.com>2023-06-13 18:05:23 +0000
commit133f9a952bc317347fa6581a6a47e59287f5b960 (patch)
treee77c357d110caf9231399f711be4351d1a97de6b /cli/tests/unit_node/async_hooks_test.ts
parent72da18dd476e269a8677e698c01b08e683fac4a5 (diff)
fix(ext/http): replace await Deno.serve with await Deno.serve().finished (#19485)
We have a bunch of these to clean up after we changed the API.
Diffstat (limited to 'cli/tests/unit_node/async_hooks_test.ts')
-rw-r--r--cli/tests/unit_node/async_hooks_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/unit_node/async_hooks_test.ts b/cli/tests/unit_node/async_hooks_test.ts
index 406244315..871ad85f9 100644
--- a/cli/tests/unit_node/async_hooks_test.ts
+++ b/cli/tests/unit_node/async_hooks_test.ts
@@ -62,7 +62,7 @@ Deno.test(async function bar() {
const res = await fetch("http://localhost:4000");
assertEquals(await res.text(), "Hello World");
ac.abort();
- await server;
+ await server.finished;
assert(differentScopeDone);
});