From 7f8b5a81675f7f6099f365bb769dd2b1a378ac9a Mon Sep 17 00:00:00 2001 From: Nedyalko Dyakov Date: Fri, 7 Feb 2025 12:56:16 +0200 Subject: [PATCH] fix: flaky ClientKillByFilter test (#3268) --- commands_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands_test.go b/commands_test.go index 404ffd02..829a94b6 100644 --- a/commands_test.go +++ b/commands_test.go @@ -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: