Skip to content

Commit

Permalink
add timeout param
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuecai committed Mar 14, 2024
1 parent e022adc commit 165f3e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/replication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ var _ = Describe("should replication ", func() {
Expect(err1).NotTo(HaveOccurred())
Eventually(func() error {
return clientMaster.Get(ctx, "key").Err()
}, "20s", "100ms").Should(Equal(redis.Nil))
}, "61s", "100ms").Should(Equal(redis.Nil))
Eventually(func() error {
return clientSlave.Get(ctx, "key").Err()
}, "20s", "100ms").Should(Equal(redis.Nil))
}, "61s", "100ms").Should(Equal(redis.Nil))
log.Println("Replication test 1 success")

log.Println("Replication test 2 start")
Expand All @@ -446,10 +446,10 @@ var _ = Describe("should replication ", func() {
Expect(clientMaster.FlushDB(ctx).Err()).NotTo(HaveOccurred())
Eventually(func() error {
return clientMaster.Get(ctx, "x").Err()
}, "20s", "100ms").Should(Equal(redis.Nil))
}, "61s", "100ms").Should(Equal(redis.Nil))
Eventually(func() error {
return clientSlave.Get(ctx, "x").Err()
}, "20s", "100ms").Should(Equal(redis.Nil))
}, "61s", "100ms").Should(Equal(redis.Nil))
log.Println("Replication test 2 success")

log.Println("rpoplpush test start")
Expand Down

0 comments on commit 165f3e2

Please sign in to comment.