Skip to content

Commit 99513b3

Browse files
authored
Test: Relax jarhell gradle test (#33787)
Gradle can sometimes emit mixed log lines due to how we spawn things in separate processes. This commit changes the jarhell integ test to only look for the exception and message, instead of including the outer part about the exception in thread main. closes #33774
1 parent 805a123 commit 99513b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/test/java/org/elasticsearch/gradle/precommit/JarHellTaskIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void testJarHellDetected() {
3434
assertTaskFailed(result, ":jarHell");
3535
assertOutputContains(
3636
result.getOutput(),
37-
"Exception in thread \"main\" java.lang.IllegalStateException: jar hell!",
37+
"java.lang.IllegalStateException: jar hell!",
3838
"class: org.apache.logging.log4j.Logger"
3939
);
4040
}

0 commit comments

Comments
 (0)