diff --git a/yet-another-docker-plugin/src/test/java/com/github/kostyasha/yad/utils/PortUtilsTest.java b/yet-another-docker-plugin/src/test/java/com/github/kostyasha/yad/utils/PortUtilsTest.java index a260d868..9dcfaf8d 100644 --- a/yet-another-docker-plugin/src/test/java/com/github/kostyasha/yad/utils/PortUtilsTest.java +++ b/yet-another-docker-plugin/src/test/java/com/github/kostyasha/yad/utils/PortUtilsTest.java @@ -24,7 +24,7 @@ /** * @author lanwen (Merkushev Kirill) */ -public class PortUtilsTest { +public class PortUtilsTest { public static final int RETRY_COUNT = 2; public static final int DELAY = (int) SECONDS.toMillis(6); @@ -68,10 +68,10 @@ public void shouldWaitIfPortAvailableButNotSshUntilTimeoutAndThrowEx() throws Ex long before = currentTimeMillis(); try { create(server.host(), server.port()).withRetries(RETRY_COUNT) - .bySshWithEveryRetryWaitFor(DELAY, MILLISECONDS); + .bySshWithEveryRetryWaitFor(RETRY_DELAY, MILLISECONDS); } catch (IOException e) { assertThat("Should wait for timeout", new Date(currentTimeMillis()), - greaterThanOrEqualTo(new Date(before + RETRY_COUNT * DELAY))); + greaterThanOrEqualTo(new Date(before + RETRY_COUNT * RETRY_DELAY))); throw e; } }