use of org.elasticsearch.test.disruption.NetworkDisruption.TwoPartitions in project elasticsearch by elastic.
the class NetworkDisruptionTests method testRandomTwoPartitions.
public void testRandomTwoPartitions() {
TwoPartitions topology = TwoPartitions.random(random(), generateRandomStringSet(2, 20));
Set<String> partition1 = topology.getNodesSideOne();
Set<String> partition2 = topology.getNodesSideTwo();
checkTwoPartitions(topology, partition1, partition2);
}
Aggregations