use of com.facebook.airlift.node.NodeInfo in project presto by prestodb.
the class TestDiscoveryNodeManager method testGetCurrentNode.
@Test
public void testGetCurrentNode() {
NodeInfo nodeInfo = new NodeInfo(new NodeConfig().setEnvironment("test").setNodeId(currentNode.getNodeIdentifier()));
DiscoveryNodeManager manager = new DiscoveryNodeManager(selector, nodeInfo, new NoOpFailureDetector(), Optional.empty(), expectedVersion, testHttpClient, new TestingDriftClient<>(), internalCommunicationConfig);
try {
assertEquals(manager.getCurrentNode(), currentNode);
} finally {
manager.stop();
}
}
Aggregations