Skip to content

Commit 242446f

Browse files
tarasclaude
andcommitted
Fix WebSocket tests hanging on Windows
- Use localhost instead of server.addr.hostname (0.0.0.0) for WebSocket client connection - Windows WebSocket implementation cannot connect to 0.0.0.0, causing tests to hang - localhost resolves correctly on all platforms including Windows 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3b42ee1 commit 242446f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket/websocket.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function useTestingPair({ fail }: TestingPairOptions = {}): Operation<
107107
);
108108

109109
let client = new WebSocket(
110-
`ws://${server.addr.hostname}:${server.addr.port}`,
110+
`ws://localhost:${server.addr.port}`,
111111
);
112112

113113
let next = yield* sockets.next();

0 commit comments

Comments
 (0)