Skip to content

Commit

Permalink
[Java] Increase inter service timeout to make tests more reliable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Nov 2, 2016
1 parent 7864124 commit 4eb8bd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aeron-client/src/test/java/io/aeron/ClientConductorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class ClientConductorTest

private static final long KEEP_ALIVE_INTERVAL = TimeUnit.MILLISECONDS.toNanos(500);
private static final long AWAIT_TIMEOUT = 100;
private static final long INTER_SERVICE_TIMEOUT_MS = 100;
private static final long INTER_SERVICE_TIMEOUT_MS = 1000;
private static final long PUBLICATION_CONNECTION_TIMEOUT_MS = 5000;

private static final String SOURCE_INFO = "127.0.0.1:40789";
Expand Down Expand Up @@ -520,7 +520,7 @@ public void shouldTimeoutInterServiceIfTooLongBetweenDoWorkCalls() throws Except
suppressPrintError = true;

conductor.doWork();
Thread.sleep(INTER_SERVICE_TIMEOUT_MS + 10);
Thread.sleep(INTER_SERVICE_TIMEOUT_MS + 100);
conductor.doWork();

verify(mockClientErrorHandler).onError(any(ConductorServiceTimeoutException.class));
Expand Down

0 comments on commit 4eb8bd3

Please sign in to comment.