diff --git a/log4j2-appender/src/test/java/pl/tkowalcz/tjahzi/log4j2/LabelsContextSubstitutionTest.java b/log4j2-appender/src/test/java/pl/tkowalcz/tjahzi/log4j2/LabelsContextSubstitutionTest.java
index ba3c812..a1146b7 100644
--- a/log4j2-appender/src/test/java/pl/tkowalcz/tjahzi/log4j2/LabelsContextSubstitutionTest.java
+++ b/log4j2-appender/src/test/java/pl/tkowalcz/tjahzi/log4j2/LabelsContextSubstitutionTest.java
@@ -52,9 +52,6 @@ class LabelsContextSubstitutionTest {
((org.apache.logging.log4j.core.LoggerContext) LogManager.getContext(false))
.setConfigLocation(uri);
- String expectedLogLine = "Test";
- long expectedTimestamp = System.currentTimeMillis();
-
Logger logger = LogManager.getLogger(LokiAppenderTest.class);
// When
@@ -95,6 +92,7 @@ class LabelsContextSubstitutionTest {
.body("data.result.stream.server", everyItem(equalTo("127.0.0.1")))
.body("data.result.stream.object", contains("prefix_${ctx:object}", "prefix_bust_ticket", "prefix_comb"))
.body("data.result.stream.owner", contains("${ctx:owner}_suffix", "wally_suffix", "jennifer_suffix"))
+ .body("data.result.stream.default_value_test", contains("use_this_if_missing", "use_this_if_missing", "use_this_if_missing"))
.body("data.result.values",
hasItems(
hasItems(hasItems(("LokiAppenderTest - Test3"))),
diff --git a/log4j2-appender/src/test/resources/labels-context-substitution-test-configuration.xml b/log4j2-appender/src/test/resources/labels-context-substitution-test-configuration.xml
index 0522457..6a2bed1 100644
--- a/log4j2-appender/src/test/resources/labels-context-substitution-test-configuration.xml
+++ b/log4j2-appender/src/test/resources/labels-context-substitution-test-configuration.xml
@@ -20,6 +20,7 @@
+