Skip to content

Commit ee29ba8

Browse files
committed
Test with parallel configuration cache
1 parent 0328c7e commit ee29ba8

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/functionalTest/kotlin/io/github/sgtsilvio/gradle/oci/ConfigurationCacheTest.kt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ internal class ConfigurationCacheTest {
2020
val result = GradleRunner.create()
2121
.withProjectDir(projectDir)
2222
.withPluginClasspath()
23-
.withArguments("test", "--configuration-cache", "-Dorg.gradle.kotlin.dsl.scriptCompilationAvoidance=false")
23+
.withArguments(
24+
"test",
25+
"--configuration-cache",
26+
"-Dorg.gradle.configuration-cache.parallel=true",
27+
"-Dorg.gradle.kotlin.dsl.scriptCompilationAvoidance=false",
28+
)
2429
.build()
2530

2631
assertTrue(result.output.contains("Configuration cache entry stored"))
@@ -38,7 +43,12 @@ internal class ConfigurationCacheTest {
3843
val result2 = GradleRunner.create()
3944
.withProjectDir(projectDir)
4045
.withPluginClasspath()
41-
.withArguments("test", "--configuration-cache", "-Dorg.gradle.kotlin.dsl.scriptCompilationAvoidance=false")
46+
.withArguments(
47+
"test",
48+
"--configuration-cache",
49+
"-Dorg.gradle.configuration-cache.parallel=true",
50+
"-Dorg.gradle.kotlin.dsl.scriptCompilationAvoidance=false",
51+
)
4252
.build()
4353

4454
assertTrue(result2.output.contains("Configuration cache entry reused"))

0 commit comments

Comments
 (0)