From 667cbe992314c28bf7a8cfda353874841d2bc91f Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Sat, 11 Feb 2017 09:17:13 +0100 Subject: [PATCH] Fix compilation error introduced by 81f9de423c03ec4538f1ba04b89ae049959b698c --- .../test/java/io/netty/resolver/dns/DnsNameResolverTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolver-dns/src/test/java/io/netty/resolver/dns/DnsNameResolverTest.java b/resolver-dns/src/test/java/io/netty/resolver/dns/DnsNameResolverTest.java index d7b633b935..bfb617549c 100644 --- a/resolver-dns/src/test/java/io/netty/resolver/dns/DnsNameResolverTest.java +++ b/resolver-dns/src/test/java/io/netty/resolver/dns/DnsNameResolverTest.java @@ -386,7 +386,7 @@ public class DnsNameResolverTest { } public void testNonCachedResolveEmptyHostName(String inetHost) throws Exception { - DnsNameResolver resolver = newNonCachedResolver(InternetProtocolFamily.IPv4).build(); + DnsNameResolver resolver = newNonCachedResolver(ResolvedAddressTypes.IPV4_ONLY).build(); try { InetAddress addr = resolver.resolve(inetHost).syncUninterruptibly().getNow(); assertEquals(SocketUtils.addressByName(inetHost), addr); @@ -406,7 +406,7 @@ public class DnsNameResolverTest { } private static void testNonCachedResolveAllEmptyHostName(String inetHost) throws UnknownHostException { - DnsNameResolver resolver = newNonCachedResolver(InternetProtocolFamily.IPv4).build(); + DnsNameResolver resolver = newNonCachedResolver(ResolvedAddressTypes.IPV4_ONLY).build(); try { List addrs = resolver.resolveAll(inetHost).syncUninterruptibly().getNow(); assertEquals(Arrays.asList(