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

Fix test.

This commit is contained in:
Vladimir Mihailenco
2015-11-22 14:44:38 +02:00
parent f130ab6161
commit b6b689904a
6 changed files with 36 additions and 29 deletions

View File

@ -238,6 +238,7 @@ func ExamplePubSub_Receive() {
}
for i := 0; i < 2; i++ {
// ReceiveTimeout is a low level API. Use ReceiveMessage instead.
msgi, err := pubsub.ReceiveTimeout(100 * time.Millisecond)
if err != nil {
panic(err)