mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +03:00
Fix deadlock. Stop time.Ticker. Add a test that closed client is not deadlocked.
This commit is contained in:
@ -83,6 +83,7 @@ var _ = Describe("ClusterClient", func() {
|
||||
Expect(subject.slots[8191]).To(BeEmpty())
|
||||
Expect(subject.slots[8192]).To(BeEmpty())
|
||||
Expect(subject.slots[16383]).To(BeEmpty())
|
||||
Expect(subject.Ping().Err().Error()).To(Equal("redis: client is closed"))
|
||||
})
|
||||
|
||||
It("should check if reload is due", func() {
|
||||
|
Reference in New Issue
Block a user