From 91d9922f3b1262410534282fcc34bc52c3ef413d Mon Sep 17 00:00:00 2001 From: Abbas Hussain Date: Mon, 30 Aug 2021 23:51:52 +0530 Subject: [PATCH] Reduce iterations to improve test run time (#1168) Signed-off-by: Abbas Hussain --- .../test/java/org/opensearch/search/SearchServiceTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/test/java/org/opensearch/search/SearchServiceTests.java b/server/src/test/java/org/opensearch/search/SearchServiceTests.java index 599594fed31..c08138a4713 100644 --- a/server/src/test/java/org/opensearch/search/SearchServiceTests.java +++ b/server/src/test/java/org/opensearch/search/SearchServiceTests.java @@ -269,7 +269,6 @@ public class SearchServiceTests extends OpenSearchSingleNodeTestCase { assertEquals(activeRefs, indexShard.store().refCount()); } - @AwaitsFix(bugUrl = "https://github.com/opensearch-project/OpenSearch/issues/578") public void testSearchWhileIndexDeleted() throws InterruptedException { createIndex("index"); client().prepareIndex("index", "type", "1").setSource("field", "value").setRefreshPolicy(IMMEDIATE).get(); @@ -315,7 +314,7 @@ public class SearchServiceTests extends OpenSearchSingleNodeTestCase { thread.start(); startGun.await(); try { - final int rounds = scaledRandomIntBetween(100, 10000); + final int rounds = scaledRandomIntBetween(100, 1000); SearchRequest searchRequest = new SearchRequest().allowPartialSearchResults(true); SearchRequest scrollSearchRequest = new SearchRequest().allowPartialSearchResults(true) .scroll(new Scroll(TimeValue.timeValueMinutes(1)));