mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
@ -188,13 +188,15 @@ var _ = Describe("Redis Ring", func() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
It("supports Process hook", func() {
|
Describe("Process hook", func() {
|
||||||
|
BeforeEach(func() {
|
||||||
//the health check leads to data race for variable "stack []string".
|
//the health check leads to data race for variable "stack []string".
|
||||||
//here, the health check time is set to 72 hours to avoid health check
|
//here, the health check time is set to 72 hours to avoid health check
|
||||||
opt := redisRingOptions()
|
opt := redisRingOptions()
|
||||||
opt.HeartbeatFrequency = 72 * time.Hour
|
opt.HeartbeatFrequency = 72 * time.Hour
|
||||||
ring = redis.NewRing(opt)
|
ring = redis.NewRing(opt)
|
||||||
|
})
|
||||||
|
It("supports Process hook", func() {
|
||||||
err := ring.Ping(ctx).Err()
|
err := ring.Ping(ctx).Err()
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
@ -342,6 +344,7 @@ var _ = Describe("Redis Ring", func() {
|
|||||||
"ring.AfterProcessPipeline",
|
"ring.AfterProcessPipeline",
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
var _ = Describe("empty Redis Ring", func() {
|
var _ = Describe("empty Redis Ring", func() {
|
||||||
|
Reference in New Issue
Block a user