diff --git a/agent-module/plugins-it/logback-it/src/test/java/com/navercorp/pinpoint/it/plugin/logback/LogbackIT.java b/agent-module/plugins-it/logback-it/src/test/java/com/navercorp/pinpoint/it/plugin/logback/LogbackIT.java index 36a0350ea65c..b406ee71acd8 100644 --- a/agent-module/plugins-it/logback-it/src/test/java/com/navercorp/pinpoint/it/plugin/logback/LogbackIT.java +++ b/agent-module/plugins-it/logback-it/src/test/java/com/navercorp/pinpoint/it/plugin/logback/LogbackIT.java @@ -48,7 +48,9 @@ public void test() { checkVersion(logger); - Assertions.assertNotNull(MDC.get("PtxId"), "txId"); + String ptxId = MDC.get("PtxId"); + Assertions.assertNotNull(ptxId, "TxId"); + Assertions.assertTrue(ptxId.contains("build.test.0^1"), "TxId value"); Assertions.assertNotNull(MDC.get("PspanId"), "spanId"); Assertions.assertNotNull(MDC.get("PreqId"), "reqId"); } @@ -73,6 +75,7 @@ public void run() { Assertions.assertNotNull(log, "log null"); Assertions.assertTrue(log.contains(msg), "contains msg"); Assertions.assertTrue(log.contains("TxId"), "contains TxId"); + Assertions.assertTrue(log.contains("build.test.0^1"), "TxId value"); Assertions.assertNotNull(logger, "logger null"); checkVersion(logger);