Skip to content

Commit 20fcb45

Browse files
committed
tests: increase Awaitility timeout in AbstractAsyncThreadContextTestBase to 5s to reduce flakiness
Signed-off-by: kcruz28 <[email protected]>
1 parent 2b5f65b commit 20fcb45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AbstractAsyncThreadContextTestBase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ protected void testAsyncLogWritesToLog(final ContextImpl contextImpl, final Mode
171171
for (int i = 0; i < LINE_COUNT; i++) {
172172
// buffer may be full
173173
if (i >= 128) {
174-
waitAtMost(500, TimeUnit.MILLISECONDS)
174+
// Allow more time for the async logger to free buffer space on slower environments.
175+
waitAtMost(5, TimeUnit.SECONDS)
175176
.pollDelay(10, TimeUnit.MILLISECONDS)
176177
.until(() -> remainingCapacity.getAsLong() > 0);
177178
}

0 commit comments

Comments
 (0)