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:
Yahor Berdnikau
2021-06-24 14:07:49 +02:00
parent 88320cbb05
commit e57ac5f67b
@@ -100,7 +100,7 @@ class SimpleKotlinGradleIT : KGPBaseTest() {
project("customJdk", gradleVersion) {
buildAndFail("build") {
assertOutputContains("Unresolved reference: stream")
assertOutputDoesNotContain("AutoCloseable")
assertOutputDoesNotContain("Unresolved reference: AutoCloseable")
}
}
}