Skip to content

Commit cb9bc13

Browse files
Fix regex in log4j test (#294)
1 parent 7573210 commit cb9bc13

File tree

1 file changed

+1
-2
lines changed
  • smoke-tests/runner/src/test/java/io/awsobservability/instrumentation/smoketests/runner

1 file changed

+1
-2
lines changed

smoke-tests/runner/src/test/java/io/awsobservability/instrumentation/smoketests/runner/LogInjectionTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,11 @@ void log4j() {
7474
.get("/outgoing-http-call")
7575
.aggregate()
7676
.join();
77-
7877
// Log message has X-Ray trace ID.
7978
assertThat(log4jString.toUtf8String())
8079
.matches(
8180
Pattern.compile(
82-
".*1-[0-9a-f]{8}-[0-9a-f]{24}@[0-9a-f]{16} - Executing outgoing-http-call.*",
81+
".*1-[0-9a-f]{8}-[0-9a-f]{24}@[0-9a-f]{16} INFO Executing outgoing-http-call.*",
8382
Pattern.DOTALL));
8483
}
8584

0 commit comments

Comments
 (0)