use of io.airlift.node.NodeInfo in project presto by prestodb.
the class TestDiscoveryNodeManager method testGetCurrentNode.
@Test
public void testGetCurrentNode() {
Node expected = activeNodes.get(0);
NodeInfo nodeInfo = new NodeInfo(new NodeConfig().setEnvironment("test").setNodeId(expected.getNodeIdentifier()));
DiscoveryNodeManager manager = new DiscoveryNodeManager(selector, nodeInfo, new NoOpFailureDetector(), expectedVersion, testHttpClient);
assertEquals(manager.getCurrentNode(), expected);
}
Aggregations