mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Merge branch 'v9'
This commit is contained in:
@ -185,7 +185,8 @@ var _ = Describe("NewFailoverClusterClient", func() {
|
||||
}
|
||||
|
||||
// Create subscription.
|
||||
ch := client.Subscribe(ctx, "foo").Channel()
|
||||
sub := client.Subscribe(ctx, "foo")
|
||||
ch := sub.Channel()
|
||||
|
||||
// Kill master.
|
||||
err = master.Shutdown(ctx).Err()
|
||||
@ -207,6 +208,7 @@ var _ = Describe("NewFailoverClusterClient", func() {
|
||||
}, "15s", "100ms").Should(Receive(&msg))
|
||||
Expect(msg.Channel).To(Equal("foo"))
|
||||
Expect(msg.Payload).To(Equal("hello"))
|
||||
Expect(sub.Close()).NotTo(HaveOccurred())
|
||||
|
||||
_, err = startRedis(masterPort)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
Reference in New Issue
Block a user