[TEST] use a different node ID for the test nodes

This commit is contained in:
Simon Willnauer 2016-10-13 17:39:19 +02:00
parent 3bba7dbe07
commit 7e5d8a6e5a
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class SearchAsyncActionTests extends ESTestCase {
} }
}; };
DiscoveryNode primaryNode = new DiscoveryNode("node_1", buildNewFakeTransportAddress(), Version.CURRENT); DiscoveryNode primaryNode = new DiscoveryNode("node_1", buildNewFakeTransportAddress(), Version.CURRENT);
DiscoveryNode replicaNode = new DiscoveryNode("node_1", buildNewFakeTransportAddress(), Version.CURRENT); DiscoveryNode replicaNode = new DiscoveryNode("node_2", buildNewFakeTransportAddress(), Version.CURRENT);
Map<DiscoveryNode, Set<Long>> nodeToContextMap = new HashMap<>(); Map<DiscoveryNode, Set<Long>> nodeToContextMap = new HashMap<>();
AtomicInteger contextIdGenerator = new AtomicInteger(0); AtomicInteger contextIdGenerator = new AtomicInteger(0);