Skip to content

Commit 9b58ef5

Browse files
authored
Reduce iterations to improve test run time (#1168) (#1177)
Signed-off-by: Abbas Hussain <[email protected]>
1 parent 04d56cf commit 9b58ef5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/test/java/org/opensearch/search/SearchServiceTests.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ public void testCloseSearchContextOnRewriteException() {
269269
assertEquals(activeRefs, indexShard.store().refCount());
270270
}
271271

272-
@AwaitsFix(bugUrl = "https://github.com/opensearch-project/OpenSearch/issues/578")
273272
public void testSearchWhileIndexDeleted() throws InterruptedException {
274273
createIndex("index");
275274
client().prepareIndex("index", "type", "1").setSource("field", "value").setRefreshPolicy(IMMEDIATE).get();
@@ -315,7 +314,7 @@ public void onFailure(Exception e) {
315314
thread.start();
316315
startGun.await();
317316
try {
318-
final int rounds = scaledRandomIntBetween(100, 10000);
317+
final int rounds = scaledRandomIntBetween(100, 1000);
319318
SearchRequest searchRequest = new SearchRequest().allowPartialSearchResults(true);
320319
SearchRequest scrollSearchRequest = new SearchRequest().allowPartialSearchResults(true)
321320
.scroll(new Scroll(TimeValue.timeValueMinutes(1)));

0 commit comments

Comments
 (0)