File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments