From d1fc8be0ede384f1dc6b5ec64d0685272d6ba01f Mon Sep 17 00:00:00 2001 From: kkewwei Date: Wed, 11 Dec 2024 22:44:24 +0800 Subject: [PATCH] Fix Flaky Test SearchTimeoutIT.testSimpleTimeout Signed-off-by: kkewwei --- .../java/org/opensearch/search/SearchTimeoutIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/internalClusterTest/java/org/opensearch/search/SearchTimeoutIT.java b/server/src/internalClusterTest/java/org/opensearch/search/SearchTimeoutIT.java index ef7da395d2151..ed5ff3b90e315 100644 --- a/server/src/internalClusterTest/java/org/opensearch/search/SearchTimeoutIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/search/SearchTimeoutIT.java @@ -82,7 +82,7 @@ protected Settings nodeSettings(int nodeOrdinal) { } public void testSimpleTimeout() throws Exception { - final int numDocs = 1000; + final int numDocs = 10; for (int i = 0; i < numDocs; i++) { client().prepareIndex("test").setId(Integer.toString(i)).setSource("field", "value").get(); }