Skip to content

Commit

Permalink
fix "RedisSocketInitiator"
Browse files Browse the repository at this point in the history
  • Loading branch information
leibale committed Apr 21, 2022
1 parent 8ad0473 commit 2c23787
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/client/lib/client/socket.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ describe('Socket', () => {
return time;
});

const socket = new RedisSocket(undefined, {
host: 'error',
reconnectStrategy
});
const socket = new RedisSocket(
() => Promise.resolve(),
{
host: 'error',
reconnectStrategy
}
);

socket.on('error', () => {
// ignore errors
Expand Down

0 comments on commit 2c23787

Please sign in to comment.