diff --git a/aeron-system-tests/src/test/java/io/aeron/cluster/ClusterToolTest.java b/aeron-system-tests/src/test/java/io/aeron/cluster/ClusterToolTest.java index b2c88d04dd..00232e65bb 100644 --- a/aeron-system-tests/src/test/java/io/aeron/cluster/ClusterToolTest.java +++ b/aeron-system-tests/src/test/java/io/aeron/cluster/ClusterToolTest.java @@ -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(); @@ -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(),