Skip to content

Commit

Permalink
[Java] Fix assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Dec 20, 2024
1 parent 11f0617 commit a41ee99
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions aeron-archive/src/test/java/io/aeron/archive/ArchiveTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -933,10 +933,15 @@ void shouldTimeoutInactiveArchiveClients(final String controlRequestChannel, fin
while (client2.controlResponsePoller().subscription().isConnected())
{
assertNull(client1.pollForErrorResponse());
final String response = client2.pollForErrorResponse();
if (null != response)
try
{
assertEquals(AeronArchive.NOT_CONNECTED_MSG, response);
client2.checkForErrorResponse();
}
catch (final ArchiveException ex)
{
assertThat(ex.getMessage(), anyOf(
equalTo("ERROR - client is closed"),
equalTo("ERROR - not connected")));
break;
}
}
Expand Down

0 comments on commit a41ee99

Please sign in to comment.