Skip to content

Commit 071307e

Browse files
committed
debug statements
1 parent 7575c17 commit 071307e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

redis_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,14 @@ var _ = Describe("Client", func() {
8888

8989
//check withTimeout supports the addition of dialHook
9090
var res []string
91+
res = append(res, "before")
9192
client.AddHook(&hook{
9293
dialHook: func(hook redis.DialHook) redis.DialHook {
94+
res = append(res, "before-dial-hook-start")
9395
return func(ctx context.Context, network, addr string) (n net.Conn, e error) {
9496
res = append(res, "dial-hook-start")
9597
n, e = hook(ctx, network, addr)
96-
return
98+
return n, e
9799
}
98100
},
99101
})

0 commit comments

Comments
 (0)