1
0
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:
Vladimir Mihailenco
2015-05-01 11:01:01 +03:00
parent d00fb6ead9
commit cc0ee10019
2 changed files with 8 additions and 5 deletions

View File

@ -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() {