mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Test: Use internalTestCluster() instead of internalCluster()
Original commit: elastic/x-pack-elasticsearch@a2b72000c8
This commit is contained in:
parent
6404b2c7e5
commit
511ac9f6a9
@ -234,7 +234,7 @@ public class NoMasterNodeTests extends AbstractWatcherIntegrationTests {
|
||||
// will elect itself as master. This is bad and should be fixed in core. What I think that should happen is that
|
||||
// if a node detects that is has lost a node, a node should clear its unicast temporal responses or at least
|
||||
// remove the node that has been removed. This is a workaround:
|
||||
for (ZenPingService pingService : internalCluster().getInstances(ZenPingService.class)) {
|
||||
for (ZenPingService pingService : internalTestCluster().getInstances(ZenPingService.class)) {
|
||||
for (ZenPing zenPing : pingService.zenPings()) {
|
||||
if (zenPing instanceof UnicastZenPing) {
|
||||
((UnicastZenPing) zenPing).clearTemporalResponses();
|
||||
|
Loading…
x
Reference in New Issue
Block a user