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 (#2844)
  • Loading branch information
tishun committed Apr 30, 2024
1 parent a91d701 commit 21514ef
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 21514ef

Please sign in to comment.