1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
This commit is contained in:
Divy Srivastava 2024-12-26 13:49:47 +05:30
parent 5f5cc5a707
commit 1fa8905401

View file

@ -823,7 +823,7 @@ Deno.test("send to a closed socket", async () => {
});
Deno.test(async function websocketDoesntLeak() {
const { promise, resolve, reject } = Promise.withResolvers<void>();
const { promise, resolve } = Promise.withResolvers<void>();
const ws = new WebSocket(new URL("ws://localhost:4242/"));
assertEquals(ws.url, "ws://localhost:4242/");
ws.onopen = () => resolve();