Skip to content

Commit

Permalink
tidy CC assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-enko committed Sep 30, 2024
1 parent 4d6f01f commit 3cd5b34
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.paths.shouldBeADirectory
import io.kotest.matchers.shouldBe
import io.kotest.matchers.string.shouldContain
import io.kotest.matchers.string.shouldNotContain
import org.gradle.testkit.runner.GradleRunner
import org.gradle.testkit.runner.TaskOutcome.UP_TO_DATE
import org.jetbrains.dokka.gradle.utils.*
Expand Down Expand Up @@ -329,13 +328,11 @@ class ExampleProjectsTest {
configCacheRunner.build {
output shouldContain "BUILD SUCCESSFUL"
output shouldContain "Configuration cache entry stored"
output shouldNotContain "problems were found storing the configuration cache"
}

val ccReport = testCase.project.loadConfigurationCacheReportData().shouldNotBeNull()

ccReport.asClue {
it.totalProblemCount shouldBe 0
val ccReport = testCase.project.loadConfigurationCacheReportData().shouldNotBeNull()
ccReport.asClue {
it.totalProblemCount shouldBe 0
}
}

// second build should reuse the configuration cache
Expand Down

0 comments on commit 3cd5b34

Please sign in to comment.