Skip to content

Commit

Permalink
adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaSha committed Oct 20, 2019
1 parent 482e739 commit f812bb7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit f812bb7

Please sign in to comment.