Skip to content

Commit 451c64a

Browse files
committed
fix clientkillbyage test
1 parent 8cfff61 commit 451c64a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@ var _ = Describe("Commands", func() {
211211
select {
212212
case <-done:
213213
Fail("BLPOP is not blocked.")
214-
case <-time.After(2 * time.Second):
214+
case <-time.After(1 * time.Second):
215215
// ok
216216
}
217217

218218
killed := client.ClientKillByFilter(ctx, "MAXAGE", "1")
219219
Expect(killed.Err()).NotTo(HaveOccurred())
220-
Expect(killed.Val()).To(SatisfyAny(Equal(int64(2)), Equal(int64(3))))
220+
Expect(killed.Val()).To(SatisfyAny(Equal(int64(2)), Equal(int64(3), Equal(int64(4)))))
221221

222222
select {
223223
case <-done:

0 commit comments

Comments
 (0)