Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
breskeby committed Nov 27, 2024
1 parent c570637 commit 38b0615
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@ class BuildParameterExtensionSpec extends Specification {
latch.await(10, TimeUnit.SECONDS)

then:
futures.size() == numberOfThreads
futures.collect { it.state() }.any() { it == Future.State.FAILED } == false

where:
getterName << [
"getRuntimeJavaHome",
"getJavaToolChainSpec",
"getRuntimeJavaDetails",
"getRuntimeJavaVersion"
"getRuntimeJavaVersion",
"getBwcVersionsProvider"
]

}

private BuildParameterExtension extension(Project project, ProviderFactory providers) {
Expand All @@ -93,7 +92,7 @@ class BuildParameterExtensionSpec extends Specification {
5,
true,
// cannot use Mock here because of the way the provider is used by gradle internal property api
providers.provider { Mock(BwcVersions) }
providerMock()
)
}

Expand Down

0 comments on commit 38b0615

Please sign in to comment.