test: don't return 0, at least one request must be added to msearch request
also the maxConcurrentSearchRequests() setter only support positive values.
This commit is contained in:
parent
f7f377791f
commit
14d6b04944
|
@ -63,7 +63,7 @@ public class MultiSearchIT extends ESIntegTestCase {
|
|||
}
|
||||
refresh();
|
||||
|
||||
int numSearchRequests = randomIntBetween(0, 64);
|
||||
int numSearchRequests = randomIntBetween(1, 64);
|
||||
MultiSearchRequest request = new MultiSearchRequest();
|
||||
if (randomBoolean()) {
|
||||
request.maxConcurrentSearchRequests(randomIntBetween(1, numSearchRequests));
|
||||
|
|
Loading…
Reference in New Issue