Merge pull request #1593 from metamx/run-tests-offline

Fix test so that it can run offline
This commit is contained in:
Fangjin Yang 2015-08-04 09:23:40 -07:00
commit b05be0a104
1 changed files with 1 additions and 1 deletions

View File

@ -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);