mirror of
https://github.com/apache/druid.git
synced 2025-02-25 20:48:05 +00:00
Fix test so that it can run offline too
Test was getting stuck for me when I tried to run it offline while resolving the host. creating unresolved SocketAddress works around this.
This commit is contained in:
parent
ce5de2b7a7
commit
f490547faf
@ -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…
x
Reference in New Issue
Block a user