Skip to content

Commit e8fa8cb

Browse files
author
Gabriel Erzse
committed
Fix flaky test
Sometimes the slow log operation in the binary test actually takes 0 time, so adapt the assert to cover that case too.
1 parent 9c1385a commit e8fa8cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/redis/clients/jedis/commands/jedis/SlowlogCommandsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void slowlogBinaryObjectDetails() {
116116
List<Object> log = (List<Object>) logs.get(0);
117117
assertThat((Long) log.get(0), Matchers.greaterThan(0L));
118118
assertThat((Long) log.get(1), Matchers.greaterThan(0L));
119-
assertThat((Long) log.get(2), Matchers.greaterThan(0L));
119+
assertThat((Long) log.get(2), Matchers.greaterThanOrEqualTo(0L));
120120
List<Object> args = (List<Object>) log.get(3);
121121
assertEquals(4, args.size());
122122
assertArrayEquals(Protocol.Command.CONFIG.getRaw(), (byte[]) args.get(0));

0 commit comments

Comments
 (0)