diff --git a/tests/unit/websocket_test.ts b/tests/unit/websocket_test.ts index 51cf5488a8..3dad8fa8bd 100644 --- a/tests/unit/websocket_test.ts +++ b/tests/unit/websocket_test.ts @@ -823,7 +823,7 @@ Deno.test("send to a closed socket", async () => { }); Deno.test(async function websocketDoesntLeak() { - const { promise, resolve, reject } = Promise.withResolvers(); + const { promise, resolve } = Promise.withResolvers(); const ws = new WebSocket(new URL("ws://localhost:4242/")); assertEquals(ws.url, "ws://localhost:4242/"); ws.onopen = () => resolve();