Skip to content

Commit ee0fb71

Browse files
committed
fix flanky test
1 parent 81c267e commit ee0fb71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commands_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,18 +212,18 @@ var _ = Describe("Commands", func() {
212212
select {
213213
case <-done:
214214
Fail("BLPOP is not blocked.")
215-
case <-time.After(1 * time.Second):
215+
case <-time.After(1100 * time.Millisecond):
216216
// ok
217217
}
218218

219219
killed := client.ClientKillByFilter(ctx, "MAXAGE", "1")
220220
Expect(killed.Err()).NotTo(HaveOccurred())
221-
Expect(killed.Val()).To(BeNumerically(">=", 2))
221+
Expect(killed.Val()).To(BeNumerically(">=", 1))
222222

223223
select {
224224
case <-done:
225225
// ok
226-
case <-time.After(time.Second):
226+
case <-time.After(200 * time.Millisecond):
227227
Fail("BLPOP is still blocked.")
228228
}
229229
})

0 commit comments

Comments
 (0)