Skip to content

Commit 99109c1

Browse files
committed
newClient
1 parent d3c71cc commit 99109c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

redis_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ var _ = Describe("Client", func() {
9393
var res []string
9494
res = append(res, "before")
9595

96+
client := redis.NewClient(&redis.Options{
97+
Addr: redisAddr,
98+
MaxRetries: 1,
99+
})
96100
client.WithTimeout(10 * time.Millisecond)
97101
client.AddHook(&hook{
98102
dialHook: func(hook redis.DialHook) redis.DialHook {

0 commit comments

Comments
 (0)