Reduce iterations to improve test run time (#1168)

Signed-off-by: Abbas Hussain <abbas_10690@yahoo.com>
This commit is contained in:
Abbas Hussain 2021-08-30 23:51:52 +05:30 committed by GitHub
parent 9b4440d1f6
commit 91d9922f3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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)));