From 38b061563acc25126e9d691e9c8b58b150c4e4c7 Mon Sep 17 00:00:00 2001 From: Rene Groeschke Date: Wed, 27 Nov 2024 08:10:41 +0100 Subject: [PATCH] Minor cleanup --- .../internal/info/BuildParameterExtensionSpec.groovy | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build-tools-internal/src/test/groovy/org/elasticsearch/gradle/internal/info/BuildParameterExtensionSpec.groovy b/build-tools-internal/src/test/groovy/org/elasticsearch/gradle/internal/info/BuildParameterExtensionSpec.groovy index 2fbb0f67878ab..343268b9b4d47 100644 --- a/build-tools-internal/src/test/groovy/org/elasticsearch/gradle/internal/info/BuildParameterExtensionSpec.groovy +++ b/build-tools-internal/src/test/groovy/org/elasticsearch/gradle/internal/info/BuildParameterExtensionSpec.groovy @@ -57,7 +57,6 @@ class BuildParameterExtensionSpec extends Specification { latch.await(10, TimeUnit.SECONDS) then: - futures.size() == numberOfThreads futures.collect { it.state() }.any() { it == Future.State.FAILED } == false where: @@ -65,9 +64,9 @@ class BuildParameterExtensionSpec extends Specification { "getRuntimeJavaHome", "getJavaToolChainSpec", "getRuntimeJavaDetails", - "getRuntimeJavaVersion" + "getRuntimeJavaVersion", + "getBwcVersionsProvider" ] - } private BuildParameterExtension extension(Project project, ProviderFactory providers) { @@ -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() ) }