Skip to content

Commit 74164a4

Browse files
committed
fix flaky test?
1 parent bdeda87 commit 74164a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pubsub_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ var _ = Describe("PubSub", func() {
113113
pubsub := client.SSubscribe(ctx, "mychannel", "mychannel2")
114114
defer pubsub.Close()
115115

116+
// sleep a bit to make sure redis knows about the subscriptions
117+
time.Sleep(10 * time.Millisecond)
118+
116119
channels, err = client.PubSubShardChannels(ctx, "mychannel*").Result()
117120
Expect(err).NotTo(HaveOccurred())
118121
Expect(channels).To(ConsistOf([]string{"mychannel", "mychannel2"}))

0 commit comments

Comments
 (0)