Skip to content

Commit b981208

Browse files
committed
add test
1 parent 3c1ca57 commit b981208

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

oryxBuildBinary

34.7 MB
Binary file not shown.

universal_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,15 @@ var _ = Describe("UniversalClient", func() {
6161
Expect(a).ToNot(Panic())
6262
})
6363
})
64+
65+
It("should connect to failover servers on slaves", func() {
66+
Skip("Flaky Test")
67+
client = redis.NewUniversalClient(&redis.UniversalOptions{
68+
MasterName: sentinelName,
69+
Addrs: sentinelAddrs,
70+
ReadOnly: true,
71+
})
72+
Expect(client.Ping(ctx).Err()).NotTo(HaveOccurred())
73+
a := func() { client.Do(ctx, "ROLE").Result() }
74+
Expect(a).ToNot(Panic())
75+
})

0 commit comments

Comments
 (0)