Skip to content

Commit f893635

Browse files
Fix Flaky Test SearchTimeoutIT.testSimpleTimeout (#16828) (#16886)
(cherry picked from commit 7050ecf) Signed-off-by: kkewwei <kkewwei@163.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 1e3e35d commit f893635

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/internalClusterTest/java/org/opensearch/search/SearchTimeoutIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ protected Settings nodeSettings(int nodeOrdinal) {
8282
}
8383

8484
public void testSimpleTimeout() throws Exception {
85-
final int numDocs = 1000;
86-
for (int i = 0; i < numDocs; i++) {
85+
for (int i = 0; i < 32; i++) {
8786
client().prepareIndex("test").setId(Integer.toString(i)).setSource("field", "value").get();
8887
}
8988
refresh("test");

0 commit comments

Comments
 (0)