Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
hexoul committed May 14, 2021
1 parent 0e00417 commit 0c261de
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -317,7 +317,10 @@ void waitWithWrongMethod() throws Exception {
HttpHeaderNames.PREFER, "wait=60",
HttpHeaderNames.IF_NONE_MATCH, "\"healthy\"")).aggregate();
assertThat(f.get().status()).isEqualTo(HttpStatus.METHOD_NOT_ALLOWED);
verify(logger).isDebugEnabled();
await().atMost(5, TimeUnit.SECONDS)
.untilAsserted(() -> {
assertThatCode(() -> verify(logger).isDebugEnabled()).doesNotThrowAnyException();
});
verifyNoMoreInteractions(logger);
}

Expand Down

0 comments on commit 0c261de

Please sign in to comment.