Skip to content

Commit 001564b

Browse files
Updated test case
Signed-off-by: aggarwalShivani <shivani.aggarwal@nokia.com>
1 parent 455cfb3 commit 001564b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/internalClusterTest/java/org/opensearch/snapshots/DedicatedClusterSnapshotRestoreIT.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ public void testRestoreIndexWithMissingShards() throws Exception {
572572
List<SnapshotStatus> snapshotStatuses = snapshotsStatusResponse.getSnapshots();
573573
assertEquals(snapshotStatuses.size(), 1);
574574
logger.trace("current snapshot status [{}]", snapshotStatuses.get(0));
575-
assertTrue(snapshotStatuses.get(0).getState().completed());
575+
assertThat(getSnapshot("test-repo", "test-snap-2").state(), equalTo(SnapshotState.PARTIAL));
576576
}, 1, TimeUnit.MINUTES);
577577
SnapshotsStatusResponse snapshotsStatusResponse = clusterAdmin().prepareSnapshotStatus("test-repo")
578578
.setSnapshots("test-snap-2")
@@ -589,7 +589,6 @@ public void testRestoreIndexWithMissingShards() throws Exception {
589589
// After it was marked as completed in the cluster state - we need to check if it's completed on the file system as well
590590
assertBusy(() -> {
591591
SnapshotInfo snapshotInfo = getSnapshot("test-repo", "test-snap-2");
592-
assertTrue(snapshotInfo.state().completed());
593592
assertEquals(SnapshotState.PARTIAL, snapshotInfo.state());
594593
}, 1, TimeUnit.MINUTES);
595594
} else {

0 commit comments

Comments
 (0)