Skip to content

Commit d786a04

Browse files
Fix testFrozenAndNormalIndependent (#71765)
Test would fail one out of 20 runs due to off by one error. Relates to #71760
1 parent 74c20f1 commit d786a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/SearchableSnapshotsShardLimitIntegTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void testFrozenAndNormalIndependent() throws Exception {
5555
createFullSnapshot(fsRepoName, snapshotName);
5656

5757
final Settings.Builder indexSettingsBuilder = Settings.builder();
58-
final int initialCopies = between(1, MAX_FROZEN);
58+
final int initialCopies = between(1, MAX_FROZEN - 1);
5959
indexSettingsBuilder.put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, initialCopies - 1);
6060
mount(indexSettingsBuilder, MountSearchableSnapshotRequest.Storage.SHARED_CACHE);
6161

0 commit comments

Comments
 (0)