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 723efa6212b8..e900cf54ee43 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"); } @@ -72,6 +74,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);