Skip to content

Commit c863950

Browse files
committed
awaitBlocking not necessary
1 parent 0ef085d commit c863950

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

artio-system-tests/src/test/java/uk/co/real_logic/artio/system_tests/PersistentSequenceNumberGatewayToGatewaySystemTest.java

+7-10
Original file line numberDiff line numberDiff line change
@@ -498,17 +498,14 @@ public void shouldDetectDisconnectDuringReplay()
498498
testSystem.await("failed to start replaying", acceptingSession::isReplaying);
499499

500500
// Pause for a little bit to test out race with replaying
501-
testSystem.awaitBlocking(() ->
501+
try
502502
{
503-
try
504-
{
505-
Thread.sleep(100);
506-
}
507-
catch (final InterruptedException e)
508-
{
509-
e.printStackTrace();
510-
}
511-
});
503+
Thread.sleep(100);
504+
}
505+
catch (final InterruptedException e)
506+
{
507+
e.printStackTrace();
508+
}
512509
}
513510
}
514511

0 commit comments

Comments
 (0)