Skip to content

Commit 1859501

Browse files
committed
Update BookieInitializationTest assertion for slog message text
The slog conversion in this PR changed the exception-handler log message from "Triggered exceptionHandler of Component: {}" (with placeholder) to "Triggered exceptionHandler of Component" (component name moved to a structured attr). Drop the trailing colon from the test's substring match so it matches the new literal message.
1 parent 380f2e6 commit 1859501

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/BookieInitializationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ public void testBookieStartException() throws Exception {
827827
*/
828828
loggerOutput.expect((List<LoggingEvent> logEvents) -> {
829829
assertThat(logEvents,
830-
hasItem(hasProperty("message", containsString("Triggered exceptionHandler of Component:"))));
830+
hasItem(hasProperty("message", containsString("Triggered exceptionHandler of Component"))));
831831
});
832832
}
833833

0 commit comments

Comments
 (0)