diff --git a/src/integrationTest/java/org/opensearch/security/SnapshotSteps.java b/src/integrationTest/java/org/opensearch/security/SnapshotSteps.java index ee0675f3c5..b58a5b8aa3 100644 --- a/src/integrationTest/java/org/opensearch/security/SnapshotSteps.java +++ b/src/integrationTest/java/org/opensearch/security/SnapshotSteps.java @@ -61,7 +61,7 @@ public CreateSnapshotResponse createSnapshot(String repositoryName, String snaps public void waitForSnapshotCreation(String repositoryName, String snapshotName) { GetSnapshotsRequest getSnapshotsRequest = new GetSnapshotsRequest(repositoryName, new String[] { snapshotName }); - Awaitility.await().pollDelay(10, TimeUnit.MICROSECONDS).pollInterval(1, TimeUnit.SECONDS).alias("wait for snapshot creation").ignoreExceptions().until(() -> { + Awaitility.await().pollDelay(250, TimeUnit.MILLISECONDS).pollInterval(2, TimeUnit.SECONDS).alias("wait for snapshot creation").ignoreExceptions().until(() -> { GetSnapshotsResponse snapshotsResponse = snapshotClient.get(getSnapshotsRequest, DEFAULT); SnapshotInfo snapshotInfo = snapshotsResponse.getSnapshots().get(0); return SnapshotState.SUCCESS.equals(snapshotInfo.state());