Skip to content

Commit e734564

Browse files
authored
fix(test): fix a timing issue in pubsub test (#3655)
* fix(test): fix a timing issue in pubsub test Signed-off-by: Xiaolong Chen <fukua95@gmail.com> * CI Signed-off-by: Xiaolong Chen <fukua95@gmail.com> --------- Signed-off-by: Xiaolong Chen <fukua95@gmail.com>
1 parent 452eb3d commit e734564

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pubsub_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,8 @@ var _ = Describe("PubSub", func() {
572572
err := client.Publish(ctx, "mychannel", text).Err()
573573
Expect(err).NotTo(HaveOccurred())
574574

575+
time.Sleep(10 * time.Millisecond)
576+
575577
var msg *redis.Message
576578
Eventually(ch).Should(Receive(&msg))
577579
Expect(msg.Channel).To(Equal("mychannel"))

0 commit comments

Comments
 (0)