Reduce iterations to improve test run time (#1168) (#1177)

Signed-off-by: Abbas Hussain <abbas_10690@yahoo.com>
This commit is contained in:
Abbas Hussain 2021-08-31 01:06:29 +05:30 committed by GitHub
parent 04d56cf676
commit 9b58ef5350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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