[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:
parent
7ff846ffb2
commit
dc371ef593
|
@ -58,6 +58,11 @@ public class ReopenWhileClosingIT extends ESIntegTestCase {
|
||||||
return singletonList(MockTransportService.TestPlugin.class);
|
return singletonList(MockTransportService.TestPlugin.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int minimumNumberOfShards() {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
public void testReopenDuringClose() throws Exception {
|
public void testReopenDuringClose() throws Exception {
|
||||||
final String indexName = "test";
|
final String indexName = "test";
|
||||||
createIndexWithDocs(indexName);
|
createIndexWithDocs(indexName);
|
||||||
|
|
Loading…
Reference in New Issue