Skip to content

Commit

Permalink
improving SlowConsumerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianoviana committed Sep 5, 2024
1 parent 80200ca commit 157fdd2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,14 @@ private ConnectedSessionInfo sessionBecomesSlow(final MessageTimingCaptor messag
assertNotSlow();

// Get into a slow state
while (sessionInfo.bytesInBuffer() == 0 || !handler.isSlow(session))
while (!handler.isSlow(session))
{
for (int i = 0; i < 10; i++)
{
sendMessageWithRetry();
}

testSystem.poll();
}
testSystem.poll();

assertIsSlow();
return sessionInfo;
Expand Down

0 comments on commit 157fdd2

Please sign in to comment.