[Tests] ExternalCluster change error message when use local network mode due to wrong system properties

This commit is contained in:
Boaz Leskes 2014-09-02 15:05:30 +02:00
parent 024df242dc
commit 89f8f6c51e
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public final class ExternalTestCluster extends TestCluster {
// verify that the end node setting will have network enabled. // verify that the end node setting will have network enabled.
Tuple<Settings, Environment> finalSettings = InternalSettingsPreparer.prepareSettings(clientSettings, true); Tuple<Settings, Environment> finalSettings = InternalSettingsPreparer.prepareSettings(clientSettings, true);
assertFalse("backward compatibility tests must run in network mode. You probably have a system property overriding the test settings", assertFalse("testing against an external cluster must run in network mode. You probably have a system property overriding the test settings.",
DiscoveryNode.localNode(finalSettings.v1())); DiscoveryNode.localNode(finalSettings.v1()));
this.client = new TransportClient(clientSettings).addTransportAddresses(transportAddresses); this.client = new TransportClient(clientSettings).addTransportAddresses(transportAddresses);