diff --git a/artio-system-tests/src/test/java/uk/co/real_logic/artio/system_tests/PersistentSequenceNumberGatewayToGatewaySystemTest.java b/artio-system-tests/src/test/java/uk/co/real_logic/artio/system_tests/PersistentSequenceNumberGatewayToGatewaySystemTest.java index 0d83e4bb64..abf0b00fd0 100644 --- a/artio-system-tests/src/test/java/uk/co/real_logic/artio/system_tests/PersistentSequenceNumberGatewayToGatewaySystemTest.java +++ b/artio-system-tests/src/test/java/uk/co/real_logic/artio/system_tests/PersistentSequenceNumberGatewayToGatewaySystemTest.java @@ -498,17 +498,14 @@ public void shouldDetectDisconnectDuringReplay() testSystem.await("failed to start replaying", acceptingSession::isReplaying); // Pause for a little bit to test out race with replaying - testSystem.awaitBlocking(() -> + try { - try - { - Thread.sleep(100); - } - catch (final InterruptedException e) - { - e.printStackTrace(); - } - }); + Thread.sleep(100); + } + catch (final InterruptedException e) + { + e.printStackTrace(); + } } }