Skip to content

Commit 6bbfcaf

Browse files
committed
fix: Apply review suggestions
1 parent 6895260 commit 6bbfcaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

log4j-core-test/src/test/java/org/apache/logging/log4j/core/ShutdownDisabledTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.junit.jupiter.api.TestInfo;
3434

3535
@SetTestProperty(key = "log4j2.isWebapp", value = "false")
36-
@LoggerContextSource("log4j-test3.xml")
3736
class ShutdownDisabledTest {
3837

3938
private static final Field shutdownCallbackField;
@@ -47,7 +46,8 @@ class ShutdownDisabledTest {
4746
}
4847

4948
@Test
50-
void testShutdownFlag(final Configuration config, final LoggerContext ctx) throws NoSuchFieldException {
49+
@LoggerContextSource("log4j-test3.xml")
50+
void testShutdownFlag(final Configuration config, final LoggerContext ctx) {
5151
assertThat(config.isShutdownHookEnabled())
5252
.as("Shutdown hook is enabled")
5353
.isFalse();

0 commit comments

Comments
 (0)