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

Add PubSub.ReceiveMessage.

This commit is contained in:
Vladimir Mihailenco
2015-09-06 13:50:16 +03:00
parent 1e9f53a8e7
commit 9987f2abaa
6 changed files with 239 additions and 58 deletions

View File

@ -159,7 +159,8 @@ var _ = Describe("Client", func() {
// Put bad connection in the pool.
cn, err := client.Pool().Get()
Expect(err).NotTo(HaveOccurred())
cn.SetNetConn(newBadNetConn())
cn.SetNetConn(&badConn{})
Expect(client.Pool().Put(cn)).NotTo(HaveOccurred())
err = client.Ping().Err()