Skip to content

Commit

Permalink
Fix spotless failures
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Singh <surajrider@gmail.com>
  • Loading branch information
dreamer-89 committed Sep 16, 2022
1 parent 988d007 commit fd087b6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class SegmentReplicationSnapshotIT extends AbstractSnapshotIntegTestCase

@BeforeClass
public static void assumeFeatureFlag() {
// assumeTrue("Segment replication Feature flag is enabled", Boolean.parseBoolean(System.getProperty(FeatureFlags.REPLICATION_TYPE)));
assumeTrue("Segment replication Feature flag is enabled", Boolean.parseBoolean(System.getProperty(FeatureFlags.REPLICATION_TYPE)));
}

public Settings segRepEnableIndexSettings() {
Expand Down Expand Up @@ -151,8 +151,7 @@ public void testRestoreOnSegRep() throws Exception {
startClusterWithSettings(segRepEnableIndexSettings(), 1);
createSnapshot();
// Delete index
client().admin().indices().delete(new DeleteIndexRequest(INDEX_NAME));
Thread.sleep(5000);
assertAcked(client().admin().indices().delete(new DeleteIndexRequest(INDEX_NAME)).get());
assertFalse("index [" + INDEX_NAME + "] should have been deleted", indexExists(INDEX_NAME));

logger.info("Restore from snapshot");
Expand Down

0 comments on commit fd087b6

Please sign in to comment.