mirror of https://github.com/go-redis/redis.git
Fix Go 1.4 build.
This commit is contained in:
parent
59a96d9d86
commit
c2156b59f3
|
@ -6,10 +6,10 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"gopkg.in/redis.v5"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|
||||||
"gopkg.in/redis.v5"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = Describe("PubSub", func() {
|
var _ = Describe("PubSub", func() {
|
||||||
|
@ -350,8 +350,11 @@ var _ = Describe("PubSub", func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
|
|
||||||
_, err := pubsub.ReceiveMessage()
|
_, err := pubsub.ReceiveMessage()
|
||||||
Expect(err).To(MatchError("redis: client is closed"))
|
Expect(err).To(HaveOccurred())
|
||||||
|
Expect(err).To(SatisfyAny(
|
||||||
|
MatchError("redis: client is closed"),
|
||||||
|
MatchError("use of closed network connection"), // Go 1.4
|
||||||
|
))
|
||||||
}()
|
}()
|
||||||
|
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
Loading…
Reference in New Issue