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 47
47
import org .junit .jupiter .api .AfterEach ;
48
48
import org .junit .jupiter .api .Assertions ;
49
49
import org .junit .jupiter .api .BeforeAll ;
50
- import org .junit .jupiter .api . Test ;
50
+ import org .junitpioneer .jupiter .RetryingTest ;
51
51
52
52
import static org .junit .jupiter .api .Assertions .assertNotEquals ;
53
53
import static org .junit .jupiter .api .Assertions .assertNotNull ;
@@ -111,7 +111,7 @@ public void after() {
111
111
loggerContext = null ;
112
112
}
113
113
114
- @ Test
114
+ @ RetryingTest ( maxAttempts = 5 , suspendForMs = 10 )
115
115
public void filterTest () throws Exception {
116
116
System .setProperty ("log4j2.Configuration.allowedProtocols" , "http" );
117
117
System .setProperty ("logging.auth.username" , "log4j" );
Original file line number Diff line number Diff line change 32
32
import org .apache .logging .log4j .core .test .appender .ListAppender ;
33
33
import org .junit .jupiter .api .AfterEach ;
34
34
import org .junit .jupiter .api .Assertions ;
35
- import org .junit .jupiter .api . Test ;
35
+ import org .junitpioneer .jupiter .RetryingTest ;
36
36
37
37
import static org .junit .jupiter .api .Assertions .*;
38
38
@@ -59,7 +59,7 @@ public void after() {
59
59
loggerContext = null ;
60
60
}
61
61
62
- @ Test
62
+ @ RetryingTest ( maxAttempts = 5 , suspendForMs = 10 )
63
63
public void filterTest () throws Exception {
64
64
System .setProperty ("configLocation" , "target/test-classes/testConfig.json" );
65
65
ThreadContext .put ("loginId" , "rgoers" );
You can’t perform that action at this time.
0 commit comments