Skip to content

Commit

Permalink
Adjust incremental cache tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-yuan committed Oct 2, 2024
1 parent 2b23790 commit 04749e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,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 {
Expand Down

0 comments on commit 04749e4

Please sign in to comment.