Skip to content

Commit

Permalink
optimize LoggerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
supervate authored and i36lib committed Jul 1, 2024
1 parent 243b457 commit 35dcf78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/io/github/artlibs/autotrace4j/LoggerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,10 @@ private static void waitingForAsyncAppend(AsyncAppender<?> asyncAppender) throws
BlockingQueue<?> queue = (BlockingQueue<?>) getField(AsyncAppender.class, "queue", true).get(asyncAppender);
if (queue != null) {
while (!queue.isEmpty()) {
Thread.sleep(1);
Thread.yield();
}
}
Thread.sleep(1);
Thread.sleep(5);
}

private static void checkLogContents(String[] logs, Level limitLevel) {
Expand Down

0 comments on commit 35dcf78

Please sign in to comment.