From 133f9a952bc317347fa6581a6a47e59287f5b960 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Tue, 13 Jun 2023 12:05:23 -0600 Subject: 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. --- cli/tests/unit_node/async_hooks_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tests/unit_node/async_hooks_test.ts') 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); }); -- cgit v1.2.3