From 68d292d8c99acc74f5a8dec7490b96fad5d6a733 Mon Sep 17 00:00:00 2001 From: Sergei Egorov Date: Fri, 10 Mar 2017 20:15:13 +0200 Subject: [PATCH] rename isApplicable -> shouldCheckWithCommand --- .../testcontainers/containers/wait/HostPortWaitStrategy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/testcontainers/containers/wait/HostPortWaitStrategy.java b/core/src/main/java/org/testcontainers/containers/wait/HostPortWaitStrategy.java index 64d3be64b1b..3b3098a5372 100644 --- a/core/src/main/java/org/testcontainers/containers/wait/HostPortWaitStrategy.java +++ b/core/src/main/java/org/testcontainers/containers/wait/HostPortWaitStrategy.java @@ -33,7 +33,7 @@ protected void waitUntilReady() { Callable checkStrategy; - if (isApplicable()) { + if (shouldCheckWithCommand()) { List exposedPorts = container.getExposedPorts(); Integer exposedPort = exposedPorts.stream() @@ -91,7 +91,7 @@ protected void waitUntilReady() { } } - private boolean isApplicable() { + private boolean shouldCheckWithCommand() { // Special case for Docker for Mac, see #160 if(DockerClientFactory.instance().isUsing(ProxiedUnixSocketClientProviderStrategy.class) && System.getProperty("os.name").toLowerCase().contains("mac")) {