mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
Fix build
This commit is contained in:
parent
8f52186ce7
commit
d9e2420125
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user