Skip to content

Commit bf44b33

Browse files
committed
[Test] More reliable wait for index to appear
Relates: #125652 Resolves: #126204
1 parent 997a7b8 commit bf44b33

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,6 @@ tests:
360360
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT
361361
method: test
362362
issue: https://github.com/elastic/elasticsearch/issues/126139
363-
- class: org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT
364-
method: testDeletionOfFailingToRecoverIndexShouldStopRestore
365-
issue: https://github.com/elastic/elasticsearch/issues/126204
366363
- class: org.elasticsearch.xpack.esql.inference.RerankOperatorTests
367364
method: testSimpleCircuitBreaking
368365
issue: https://github.com/elastic/elasticsearch/issues/124337

server/src/internalClusterTest/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ public void testDeletionOfFailingToRecoverIndexShouldStopRestore() throws Except
748748

749749
logger.info("--> wait for the index to appear");
750750
// that would mean that recovery process started and failing
751-
waitForIndex("test-idx", TimeValue.timeValueSeconds(10));
751+
safeGet(clusterAdmin().prepareHealth(TEST_REQUEST_TIMEOUT, "test-idx").execute());
752752

753753
logger.info("--> delete index");
754754
cluster().wipeIndices("test-idx");

0 commit comments

Comments
 (0)