Skip to content

Commit c0b6e3f

Browse files
committed
socket: 6s timeout for 5s delay slow server test
1 parent ffb46f0 commit c0b6e3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/socket/src/socketwrapper.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const enabled = !!globalThis.process?.env.SOCKETSERVER_ENABLED;
126126
socket.connect();
127127

128128
return ret;
129-
});
129+
}, 6000);
130130

131131
it("times out when establishing connection takes too long", async () => {
132132
const socket = new SocketWrapper(

packages/socket/src/streamingsocket.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const enabled = !!globalThis.process?.env.SOCKETSERVER_ENABLED;
2727
socket.connect();
2828
await socket.connected;
2929
socket.disconnect();
30-
});
30+
}, 6000);
3131

3232
it("times out when establishing connection takes too long", async () => {
3333
const socket = new StreamingSocket(socketServerUrlSlow, 2_000);

0 commit comments

Comments
 (0)