Increase Awaitility timeout to 5s in `AbstractAsyncThreadContextTestBase` (#3956)

diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AbstractAsyncThreadContextTestBase.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AbstractAsyncThreadContextTestBase.java
index 0274a93..eb6256e 100644
--- a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AbstractAsyncThreadContextTestBase.java
+++ b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AbstractAsyncThreadContextTestBase.java
@@ -177,7 +177,7 @@
         for (int i = 0; i < LINE_COUNT; i++) {
             // buffer may be full
             if (i >= 128) {
-                waitAtMost(500, TimeUnit.MILLISECONDS)
+                waitAtMost(5, TimeUnit.SECONDS)
                         .pollDelay(10, TimeUnit.MILLISECONDS)
                         .until(() -> remainingCapacity.getAsLong() > 0);
             }