From 18b4b5ae6be47a401d4d14a18cdc871997e91676 Mon Sep 17 00:00:00 2001 From: Luciano Viana Date: Wed, 4 Sep 2024 16:11:58 +0200 Subject: [PATCH] improving MessageBasedAcceptorSystemTest --- .../system_tests/MessageBasedAcceptorSystemTest.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/artio-system-tests/src/test/java/uk/co/real_logic/artio/system_tests/MessageBasedAcceptorSystemTest.java b/artio-system-tests/src/test/java/uk/co/real_logic/artio/system_tests/MessageBasedAcceptorSystemTest.java index 8565bec6b5..2e8d00a122 100644 --- a/artio-system-tests/src/test/java/uk/co/real_logic/artio/system_tests/MessageBasedAcceptorSystemTest.java +++ b/artio-system-tests/src/test/java/uk/co/real_logic/artio/system_tests/MessageBasedAcceptorSystemTest.java @@ -690,6 +690,10 @@ public void shouldSupportReplayingReceivedMessagesAfterReLoginAndReceiveResendRe { reportFactory.sendReport(testSystem, session, Side.BUY); } + while (session.isConnected()) + { + reportFactory.sendReport(testSystem, session, Side.SELL); + } lastSeqNum = connection.msgSeqNum(); assertSessionDisconnected(testSystem, session); @@ -716,14 +720,6 @@ public void shouldSupportReplayingReceivedMessagesAfterReLoginAndReceiveResendRe awaitedMessage(connection, new SequenceResetDecoder()); connection.close(); - try - { - Thread.sleep(200); - } - catch (final InterruptedException e) - { - throw new RuntimeException(e); - } assertSessionDisconnected(testSystem, session); } }