Fix flaky test.
Narrow down unexpected string, so it will not clash with other output. In this case 'AutoCloseable' was printed when Gradle 7 was generating api jar.
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ class SimpleKotlinGradleIT : KGPBaseTest() {
|
||||
project("customJdk", gradleVersion) {
|
||||
buildAndFail("build") {
|
||||
assertOutputContains("Unresolved reference: stream")
|
||||
assertOutputDoesNotContain("AutoCloseable")
|
||||
assertOutputDoesNotContain("Unresolved reference: AutoCloseable")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user