Skip to content

Commit

Permalink
improving MessageBasedAcceptorSystemTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianoviana committed Sep 5, 2024
1 parent 157fdd2 commit 18b4b5a
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 18b4b5a

Please sign in to comment.