mirror of https://github.com/apache/druid.git
Merge pull request #1593 from metamx/run-tests-offline
Fix test so that it can run offline
This commit is contained in:
commit
b05be0a104
|
@ -140,7 +140,7 @@ public class CacheDistributionTest
|
|||
}
|
||||
|
||||
private static MemcachedNode dummyNode(String host, int port) {
|
||||
SocketAddress address = new InetSocketAddress(host, port);
|
||||
SocketAddress address = InetSocketAddress.createUnresolved(host, port);
|
||||
MemcachedNode node = EasyMock.createNiceMock(MemcachedNode.class);
|
||||
EasyMock.expect(node.getSocketAddress()).andReturn(address).anyTimes();
|
||||
EasyMock.replay(node);
|
||||
|
|
Loading…
Reference in New Issue