Skip to content

Commit

Permalink
MAke sure we wait for the check so it does not fail on the slower pip…
Browse files Browse the repository at this point in the history
…eline (redis#2844)
  • Loading branch information
tishun authored and thachlp committed Jun 22, 2024
1 parent c1d213c commit 9781769
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ void shouldPropagateCommandTimeoutToCommandListener() throws InterruptedExceptio
assertThat(commandListener.succeeded).isEmpty();

Wait.untilTrue(() -> commandListener.failed.size() == 1);
assertThat(commandListener.failed).extracting(it -> it.getCommand().getType()).contains(CommandType.BLPOP);
Wait.untilTrue(() ->
commandListener.failed.stream().anyMatch(command ->
command.getCommand().getType().equals(CommandType.BLPOP)));


FastShutdown.shutdown(client);
}
Expand Down

0 comments on commit 9781769

Please sign in to comment.