1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Code cleanup

This commit is contained in:
Vladimir Mihailenco
2017-03-31 15:11:11 +03:00
parent 18dcec2144
commit ef95182d29
7 changed files with 3 additions and 33 deletions

View File

@ -59,6 +59,7 @@ var _ = Describe("Client", func() {
It("should close pubsub without closing the client", func() {
pubsub, err := client.Subscribe()
Expect(err).NotTo(HaveOccurred())
Expect(pubsub.Close()).NotTo(HaveOccurred())
_, err = pubsub.Receive()
@ -92,6 +93,7 @@ var _ = Describe("Client", func() {
It("should close pubsub when client is closed", func() {
pubsub, err := client.Subscribe()
Expect(err).NotTo(HaveOccurred())
Expect(client.Close()).NotTo(HaveOccurred())
_, err = pubsub.Receive()