Skip to content

Commit 2c23787

Browse files
committed
fix "RedisSocketInitiator"
1 parent 8ad0473 commit 2c23787

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/client/lib/client/socket.spec.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ describe('Socket', () => {
2121
return time;
2222
});
2323

24-
const socket = new RedisSocket(undefined, {
25-
host: 'error',
26-
reconnectStrategy
27-
});
24+
const socket = new RedisSocket(
25+
() => Promise.resolve(),
26+
{
27+
host: 'error',
28+
reconnectStrategy
29+
}
30+
);
2831

2932
socket.on('error', () => {
3033
// ignore errors

0 commit comments

Comments
 (0)