Reduce iterations to improve test run time (#1168)
Signed-off-by: Abbas Hussain <abbas_10690@yahoo.com>
This commit is contained in:
parent
9b4440d1f6
commit
91d9922f3b
|
@ -269,7 +269,6 @@ public class SearchServiceTests extends OpenSearchSingleNodeTestCase {
|
||||||
assertEquals(activeRefs, indexShard.store().refCount());
|
assertEquals(activeRefs, indexShard.store().refCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
@AwaitsFix(bugUrl = "https://github.com/opensearch-project/OpenSearch/issues/578")
|
|
||||||
public void testSearchWhileIndexDeleted() throws InterruptedException {
|
public void testSearchWhileIndexDeleted() throws InterruptedException {
|
||||||
createIndex("index");
|
createIndex("index");
|
||||||
client().prepareIndex("index", "type", "1").setSource("field", "value").setRefreshPolicy(IMMEDIATE).get();
|
client().prepareIndex("index", "type", "1").setSource("field", "value").setRefreshPolicy(IMMEDIATE).get();
|
||||||
|
@ -315,7 +314,7 @@ public class SearchServiceTests extends OpenSearchSingleNodeTestCase {
|
||||||
thread.start();
|
thread.start();
|
||||||
startGun.await();
|
startGun.await();
|
||||||
try {
|
try {
|
||||||
final int rounds = scaledRandomIntBetween(100, 10000);
|
final int rounds = scaledRandomIntBetween(100, 1000);
|
||||||
SearchRequest searchRequest = new SearchRequest().allowPartialSearchResults(true);
|
SearchRequest searchRequest = new SearchRequest().allowPartialSearchResults(true);
|
||||||
SearchRequest scrollSearchRequest = new SearchRequest().allowPartialSearchResults(true)
|
SearchRequest scrollSearchRequest = new SearchRequest().allowPartialSearchResults(true)
|
||||||
.scroll(new Scroll(TimeValue.timeValueMinutes(1)));
|
.scroll(new Scroll(TimeValue.timeValueMinutes(1)));
|
||||||
|
|
Loading…
Reference in New Issue