Skip to content

Commit d00e783

Browse files
committed
fix test
1 parent 4b54c6d commit d00e783

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

universal_test.go

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,17 @@ var _ = Describe("UniversalClient", func() {
6060
a := func() { client.FTInfo(ctx, "all").Result() }
6161
Expect(a).ToNot(Panic())
6262
})
63-
})
6463

65-
It("should connect to failover servers - slaves", func() {
66-
Skip("Flaky Test")
67-
client = redis.NewUniversalClient(&redis.UniversalOptions{
68-
MasterName: sentinelName,
69-
Addrs: sentinelAddrs,
70-
ReadOnly: true,
64+
65+
It("should connect to failover servers on slaves", func() {
66+
client = redis.NewUniversalClient(&redis.UniversalOptions{
67+
MasterName: sentinelName,
68+
Addrs: sentinelAddrs,
69+
ReadOnly: true,
70+
})
71+
Expect(client.Ping(ctx).Err()).NotTo(HaveOccurred())
7172
})
72-
Expect(client.Ping(ctx).Err()).NotTo(HaveOccurred())
73-
a := func() { client.Do(ctx, "ROLE").Result() }
74-
Expect(a).ToNot(Panic())
75-
})
73+
74+
75+
})
76+

0 commit comments

Comments
 (0)