diff --git a/x-pack/plugin/async-search/src/test/java/org/elasticsearch/xpack/search/AsyncStatusResponseTests.java b/x-pack/plugin/async-search/src/test/java/org/elasticsearch/xpack/search/AsyncStatusResponseTests.java index 95a72014740fa..5aab26b3eba58 100644 --- a/x-pack/plugin/async-search/src/test/java/org/elasticsearch/xpack/search/AsyncStatusResponseTests.java +++ b/x-pack/plugin/async-search/src/test/java/org/elasticsearch/xpack/search/AsyncStatusResponseTests.java @@ -414,7 +414,6 @@ public void testGetStatusFromStoredSearchWithNonEmptyClustersSuccessfullyComplet ); } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/98706") public void testGetStatusFromStoredSearchWithNonEmptyClustersStillRunning() { String searchId = randomSearchId(); @@ -426,6 +425,16 @@ public void testGetStatusFromStoredSearchWithNonEmptyClustersStillRunning() { int successful = randomInt(10); int partial = randomInt(10); int skipped = randomInt(10); + + if (successful + partial + skipped == 0) { + int val = randomIntBetween(1, 10); + switch (randomInt(2)) { + case 0 -> successful = val; + case 1 -> partial = val; + case 2 -> skipped = val; + default -> throw new UnsupportedOperationException(); + } + } SearchResponse.Clusters clusters = AsyncSearchResponseTests.createCCSClusterObjects(100, 99, true, successful, skipped, partial); SearchResponse searchResponse = new SearchResponse(