From f466a842c60163d1f4554bdce8a4163edb534c2c Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Thu, 20 Aug 2015 00:29:00 +0200 Subject: [PATCH] fix tests to not mix local transport and zen unicast disco --- .../java/org/elasticsearch/cluster/ClusterServiceIT.java | 5 +++++ .../discovery/DiscoveryWithServiceDisruptionsIT.java | 1 + 2 files changed, 6 insertions(+) diff --git a/core/src/test/java/org/elasticsearch/cluster/ClusterServiceIT.java b/core/src/test/java/org/elasticsearch/cluster/ClusterServiceIT.java index 71c2c2941a96..b696d7c7f5b6 100644 --- a/core/src/test/java/org/elasticsearch/cluster/ClusterServiceIT.java +++ b/core/src/test/java/org/elasticsearch/cluster/ClusterServiceIT.java @@ -68,6 +68,11 @@ import static org.hamcrest.Matchers.notNullValue; @ClusterScope(scope = Scope.TEST, numDataNodes = 0) public class ClusterServiceIT extends ESIntegTestCase { + @Override + protected boolean forceNetwork() { + return true; // TODO only testLocalNodeMasterListenerCallbacks needs this - maybe factor out? + } + @Test public void testTimeoutUpdateTask() throws Exception { Settings settings = settingsBuilder() diff --git a/core/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptionsIT.java b/core/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptionsIT.java index 84b206dec68a..b6d73e20b664 100644 --- a/core/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptionsIT.java +++ b/core/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptionsIT.java @@ -72,6 +72,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke import static org.hamcrest.Matchers.*; @ClusterScope(scope = Scope.TEST, numDataNodes = 0, transportClientRatio = 0) +@LuceneTestCase.AwaitsFix(bugUrl = "this one is just beyond nuts") public class DiscoveryWithServiceDisruptionsIT extends ESIntegTestCase { private static final TimeValue DISRUPTION_HEALING_OVERHEAD = TimeValue.timeValueSeconds(40); // we use 30s as timeout in many places.