1
0
mirror of https://github.com/redis/go-redis.git synced 2025-08-08 23:42:06 +03:00

use 3 sentinel instances in unit testing

Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@sysdig.com>
This commit is contained in:
Dmitry Shmulevich
2020-09-03 12:11:56 -07:00
parent 6115a783e1
commit 7597d0def7
3 changed files with 30 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ var _ = Describe("UniversalClient", func() {
It("should connect to failover servers", func() {
client = redis.NewUniversalClient(&redis.UniversalOptions{
MasterName: sentinelName,
Addrs: []string{":" + sentinelPort},
Addrs: sentinelAddrs,
})
Expect(client.Ping(ctx).Err()).NotTo(HaveOccurred())
})