Skip to content

Commit

Permalink
[Java] Add additional messages after unexpected message to make test …
Browse files Browse the repository at this point in the history
…more reliable.
  • Loading branch information
mikeb01 committed Jul 26, 2023
1 parent 0522e52 commit e4955d0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ void shouldFailIfMarkFileUnavailable(final @TempDir Path emptyClusterDir)
}

@Test
@InterruptAfter(30)
void shouldBeAbleToAccessClusterMarkFilesInANonDefaultLocation(final @TempDir File markFileDir)
{
final TestCluster cluster = aCluster().withStaticNodes(3).markFileBaseDir(markFileDir).start();
Expand All @@ -186,6 +187,8 @@ void shouldBeAbleToAccessClusterMarkFilesInANonDefaultLocation(final @TempDir Fi
final TestNode leader = cluster.awaitLeader();
cluster.connectClient();
cluster.sendUnexpectedMessages(1);
cluster.sendAndAwaitMessages(5);

final CapturingPrintStream stream = new CapturingPrintStream();
ClusterTool.errors(
stream.resetAndGetPrintStream(),
Expand Down

0 comments on commit e4955d0

Please sign in to comment.