Skip to content

Commit 46d30b8

Browse files
authored
Update RemoteIndexBuildStrategyTests.java (#2597)
Fix flaky test Signed-off-by: owenhalpert <[email protected]>
1 parent 4e68f3e commit 46d30b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/opensearch/knn/index/codec/nativeindex/remote/RemoteIndexBuildStrategyTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ public void testShouldBuildIndexRemotely() {
7777
when(clusterSettings.get(KNN_REMOTE_VECTOR_REPO_SETTING)).thenReturn("test-vector-repo");
7878
when(clusterService.getClusterSettings()).thenReturn(clusterSettings);
7979
KNNSettings.state().setClusterService(clusterService);
80-
assertTrue(RemoteIndexBuildStrategy.shouldBuildIndexRemotely(indexSettings, randomIntBetween(BYTE_SIZE - 1, BYTE_SIZE * 2)));
80+
assertTrue(RemoteIndexBuildStrategy.shouldBuildIndexRemotely(indexSettings, randomIntBetween(BYTE_SIZE, BYTE_SIZE * 2)));
8181
}
8282
}

0 commit comments

Comments
 (0)