Skip to content

Commit

Permalink
fix flanky test
Browse files Browse the repository at this point in the history
  • Loading branch information
ndyakov committed Feb 18, 2025
1 parent 81c267e commit b2e24ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,18 +212,18 @@ var _ = Describe("Commands", func() {
select {
case <-done:
Fail("BLPOP is not blocked.")
case <-time.After(1 * time.Second):
case <-time.After(100 * time.Millisecond):
// ok
}

killed := client.ClientKillByFilter(ctx, "MAXAGE", "1")
Expect(killed.Err()).NotTo(HaveOccurred())
Expect(killed.Val()).To(BeNumerically(">=", 2))
Expect(killed.Val()).To(BeNumerically(">=", 1))

select {
case <-done:
// ok
case <-time.After(time.Second):
case <-time.After(200 * time.Millisecond):
Fail("BLPOP is still blocked.")
}
})
Expand Down

0 comments on commit b2e24ce

Please sign in to comment.