mirror of https://github.com/go-redis/redis.git
Fix build
This commit is contained in:
parent
9c3799ce57
commit
5fec34b901
|
@ -9,7 +9,9 @@ var _ = Describe("newClusterState", func() {
|
||||||
var state *clusterState
|
var state *clusterState
|
||||||
|
|
||||||
createClusterState := func(slots []ClusterSlot) *clusterState {
|
createClusterState := func(slots []ClusterSlot) *clusterState {
|
||||||
nodes := newClusterNodes(&ClusterOptions{})
|
opt := &ClusterOptions{}
|
||||||
|
opt.init()
|
||||||
|
nodes := newClusterNodes(opt)
|
||||||
state, err := newClusterState(nodes, slots, "10.10.10.10:1234")
|
state, err := newClusterState(nodes, slots, "10.10.10.10:1234")
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
return state
|
return state
|
||||||
|
|
|
@ -180,7 +180,8 @@ var _ = Describe("Redis Ring", func() {
|
||||||
ring = redis.NewRing(opts)
|
ring = redis.NewRing(opts)
|
||||||
|
|
||||||
err := ring.Ping().Err()
|
err := ring.Ping().Err()
|
||||||
Expect(err).To(MatchError("ERR Client sent AUTH, but no password is set"))
|
Expect(err).To(HaveOccurred())
|
||||||
|
Expect(err.Error()).To(ContainSubstring("ERR AUTH"))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("can be initialized with a passwords map, one for each shard", func() {
|
It("can be initialized with a passwords map, one for each shard", func() {
|
||||||
|
@ -192,7 +193,8 @@ var _ = Describe("Redis Ring", func() {
|
||||||
ring = redis.NewRing(opts)
|
ring = redis.NewRing(opts)
|
||||||
|
|
||||||
err := ring.Ping().Err()
|
err := ring.Ping().Err()
|
||||||
Expect(err).To(MatchError("ERR Client sent AUTH, but no password is set"))
|
Expect(err).To(HaveOccurred())
|
||||||
|
Expect(err.Error()).To(ContainSubstring("ERR AUTH"))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue