diff --git a/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt b/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt index b18c8401d7..dcf715fcd5 100644 --- a/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt +++ b/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt @@ -135,14 +135,9 @@ class KMPImplementedIT(val useKSP2: Boolean) { setup(shouldFail = true) gradleRunner.withArguments("compileKotlinJvm").buildAndFail() - // Triggers the caching issue + // Should not trigger the caching issue setup(shouldFail = false) - gradleRunner.withArguments("compileKotlinJvm") - .buildAndFail().let { result -> - println("OUTPUT START") - println(result.output) - Assert.assertTrue(result.output.contains("id-to-file.tab] is already registered")) - } + gradleRunner.withArguments("compileKotlinJvm").build() } @Test diff --git a/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KotlinInjectIT.kt b/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KotlinInjectIT.kt index e370aef20c..cb4092883e 100644 --- a/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KotlinInjectIT.kt +++ b/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KotlinInjectIT.kt @@ -1,7 +1,6 @@ package com.google.devtools.ksp.test import org.gradle.testkit.runner.GradleRunner -import org.junit.Assert import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith @@ -43,14 +42,9 @@ class KotlinInjectIT(val useKSP2: Boolean) { setup(shouldFail = true) gradleRunner.withArguments("compileKotlinJvm").buildAndFail() - // Triggers the caching issue + // Should not trigger the caching issue setup(shouldFail = false) - gradleRunner.withArguments("compileKotlinJvm") - .buildAndFail().let { result -> - println("OUTPUT START") - println(result.output) - Assert.assertTrue(result.output.contains("id-to-file.tab] is already registered")) - } + gradleRunner.withArguments("compileKotlinJvm").build() } companion object {