Skip to content

Commit ca7fce1

Browse files
increase test timeout
1 parent 38ef1f0 commit ca7fce1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ describe("@socket.io/redis-streams-adapter", () => {
165165
const sockets = await servers[0].in(serverSockets[1].id).fetchSockets();
166166
expect(sockets.length).to.eql(1);
167167

168-
const response = await sockets[0].timeout(1000).emitWithAck("test");
168+
const response = await sockets[0].timeout(500).emitWithAck("test");
169169
expect(response).to.eql(2);
170170
});
171171
});

test/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export function setup({
179179
const httpServer = createServer();
180180
const io = new Server(httpServer, {
181181
adapter: createAdapter(redisClient, {
182-
readCount: 1, // return as soon as possible
182+
blockTimeInMs: 20, // reduce the polling interval to speed up the tests
183183
}),
184184
...serverOptions,
185185
});

0 commit comments

Comments
 (0)