1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00

fix: flaky ClientKillByFilter test (#3268)

This commit is contained in:
Nedyalko Dyakov 2025-02-07 12:56:16 +02:00 committed by GitHub
parent d0f921357d
commit 7f8b5a8167
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -217,7 +217,7 @@ var _ = Describe("Commands", func() {
killed := client.ClientKillByFilter(ctx, "MAXAGE", "1")
Expect(killed.Err()).NotTo(HaveOccurred())
Expect(killed.Val()).To(SatisfyAny(Equal(int64(2)), Equal(int64(3)), Equal(int64(4))))
Expect(killed.Val()).To(BeNumerically(">=", 2))
select {
case <-done: