Skip to content

Commit fcd57fc

Browse files
committed
- Update the ShutdownDisabledTest.java file to fix the assertion check for shutdown callback
1 parent 0f31554 commit fcd57fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ void testShutdownFlag(final Configuration config, final LoggerContext ctx) throw
3535
Field shutdownCallback = LoggerContext.class.getDeclaredField("shutdownCallback");
3636
Object fieldValue = ReflectionUtil.getFieldValue(shutdownCallback, ctx);
3737
assertFalse(config.isShutdownHookEnabled(), "Shutdown hook is enabled");
38-
assertNull(fieldValue, "Shutdown callback is not null");
38+
assertNull(fieldValue, "expected: <null> but was: " + fieldValue);
3939
}
4040
}

0 commit comments

Comments
 (0)