From 323a3818475a968a285b9b4b7519a742069fbe06 Mon Sep 17 00:00:00 2001 From: Luciano Viana Date: Thu, 19 Sep 2024 14:51:02 +0200 Subject: [PATCH] awaitBlocking not necessary --- ...equenceNumberGatewayToGatewaySystemTest.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) 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(); + } } }