Skip to content

Commit

Permalink
Make Fail Overflow Test less flaky
Browse files Browse the repository at this point in the history
Fail overflow test can fail to pass if exception is thrown after more then 256 messages have been processed

#162
  • Loading branch information
abutch3r committed Feb 22, 2024
1 parent 62b50c8 commit 3e5afe3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -45,7 +45,7 @@ public void testOverflow() {

await().until(() -> bean.exception() != null);
assertThat(bean.output()).doesNotContain("999");
assertThat(bean.output()).hasSizeBetween(0, 256);
assertThat(bean.output()).isNotEmpty().hasSizeLessThan(999);
assertThat(bean.failure()).isNotNull().isInstanceOf(Exception.class);
}
}

0 comments on commit 3e5afe3

Please sign in to comment.