[Tests] Fix ReopenWhileClosingIT with correct min num shards

The test intercepts TransportVerifyShardBeforeCloseAction shard
requests, so it needs a minimum of 2 primary shards on 2 different
 nodes to correctly intercepts requests.
This commit is contained in:
Tanguy Leroux 2019-01-09 13:34:38 +01:00
parent 7ff846ffb2
commit dc371ef593
1 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,11 @@ public class ReopenWhileClosingIT extends ESIntegTestCase {
return singletonList(MockTransportService.TestPlugin.class);
}
@Override
protected int minimumNumberOfShards() {
return 2;
}
public void testReopenDuringClose() throws Exception {
final String indexName = "test";
createIndexWithDocs(indexName);