Switch port allocation to find availavble port and reserve.

This commit is contained in:
John Blum
2021-09-08 12:49:54 -07:00
parent fced306b12
commit 1fde5eaec0

View File

@@ -70,7 +70,7 @@ public abstract class ForkingClientServerIntegrationTestsSupport extends ClientS
public static void startGemFireServer(@NonNull Class<?> gemfireServerConfigurationClass, String... arguments)
throws IOException {
int availablePort = setAndGetPoolPortProperty(setAndGetCacheServerPortProperty(findAvailablePort()));
int availablePort = setAndGetPoolPortProperty(setAndGetCacheServerPortProperty(findAndReserveAvailablePort()));
List<String> argumentList = new ArrayList<>(Arrays.asList(ArrayUtils.nullSafeArray(arguments, String.class)));