Skip to content

Commit c01232b

Browse files
committed
fix UT
Signed-off-by: guojialiang <[email protected]> Signed-off-by: guojialiang <[email protected]>
1 parent e21129f commit c01232b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/test/java/org/opensearch/index/IndexSettingsTests.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ public void testRefreshInterval() {
359359
}
360360

361361
public void testPublishCheckpointInterval() {
362-
String publishCheckpointInterval = getRandomTimeString(true);
363-
String lagTimeBeforeResendCheckpoint = getRandomTimeString(true);
362+
String publishCheckpointInterval = "2s";
363+
String lagTimeBeforeResendCheckpoint = "3s";
364364
IndexMetadata metadata = newIndexMeta(
365365
"index",
366366
Settings.builder()
@@ -386,8 +386,8 @@ public void testPublishCheckpointInterval() {
386386
),
387387
settings.getLagTimeBeforeResendCheckpoint()
388388
);
389-
String newPublishCheckpointInterval = getRandomTimeString(true);
390-
String newLagTimeBeforeResendCheckpoint = getRandomTimeString(true);
389+
String newPublishCheckpointInterval = "4s";
390+
String newLagTimeBeforeResendCheckpoint = "5s";
391391
settings.updateIndexMetadata(
392392
newIndexMeta(
393393
"index",

0 commit comments

Comments
 (0)