File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
log4j-core-test/src/test/java/org/apache/logging/log4j/core/filter Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4747import org .junit .jupiter .api .AfterEach ;
4848import org .junit .jupiter .api .Assertions ;
4949import org .junit .jupiter .api .BeforeAll ;
50- import org .junit .jupiter .api . Test ;
50+ import org .junitpioneer .jupiter .RetryingTest ;
5151
5252import static org .junit .jupiter .api .Assertions .assertNotEquals ;
5353import static org .junit .jupiter .api .Assertions .assertNotNull ;
@@ -111,7 +111,7 @@ public void after() {
111111 loggerContext = null ;
112112 }
113113
114- @ Test
114+ @ RetryingTest ( maxAttempts = 5 , suspendForMs = 10 )
115115 public void filterTest () throws Exception {
116116 System .setProperty ("log4j2.Configuration.allowedProtocols" , "http" );
117117 System .setProperty ("logging.auth.username" , "log4j" );
Original file line number Diff line number Diff line change 3232import org .apache .logging .log4j .core .test .appender .ListAppender ;
3333import org .junit .jupiter .api .AfterEach ;
3434import org .junit .jupiter .api .Assertions ;
35- import org .junit .jupiter .api . Test ;
35+ import org .junitpioneer .jupiter .RetryingTest ;
3636
3737import static org .junit .jupiter .api .Assertions .*;
3838
@@ -59,7 +59,7 @@ public void after() {
5959 loggerContext = null ;
6060 }
6161
62- @ Test
62+ @ RetryingTest ( maxAttempts = 5 , suspendForMs = 10 )
6363 public void filterTest () throws Exception {
6464 System .setProperty ("configLocation" , "target/test-classes/testConfig.json" );
6565 ThreadContext .put ("loginId" , "rgoers" );
You can’t perform that action at this time.
0 commit comments