Skip to content

Commit 5fec34b

Browse files
committed
Fix build
1 parent 9c3799c commit 5fec34b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

internal_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ var _ = Describe("newClusterState", func() {
99
var state *clusterState
1010

1111
createClusterState := func(slots []ClusterSlot) *clusterState {
12-
nodes := newClusterNodes(&ClusterOptions{})
12+
opt := &ClusterOptions{}
13+
opt.init()
14+
nodes := newClusterNodes(opt)
1315
state, err := newClusterState(nodes, slots, "10.10.10.10:1234")
1416
Expect(err).NotTo(HaveOccurred())
1517
return state

ring_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ var _ = Describe("Redis Ring", func() {
180180
ring = redis.NewRing(opts)
181181

182182
err := ring.Ping().Err()
183-
Expect(err).To(MatchError("ERR Client sent AUTH, but no password is set"))
183+
Expect(err).To(HaveOccurred())
184+
Expect(err.Error()).To(ContainSubstring("ERR AUTH"))
184185
})
185186

186187
It("can be initialized with a passwords map, one for each shard", func() {
@@ -192,7 +193,8 @@ var _ = Describe("Redis Ring", func() {
192193
ring = redis.NewRing(opts)
193194

194195
err := ring.Ping().Err()
195-
Expect(err).To(MatchError("ERR Client sent AUTH, but no password is set"))
196+
Expect(err).To(HaveOccurred())
197+
Expect(err.Error()).To(ContainSubstring("ERR AUTH"))
196198
})
197199
})
198200

0 commit comments

Comments
 (0)