netty5/resolver-dns/src
Scott Mitchell 9ce74d46c1 Correct unit test flaw introduced in 54c9ecf682
Motivation:
54c9ecf682 introduced a unit tests which attempted to exclude addresses which resolved to loop back addresses from an assert statement. This was done with a static check for localhost but depending on machine configuration it is possible for other interfaces to be resolved.

Modifications:
- Use InetAddress#isLoopbackAddress() instead of string match on localhost

Result:
DnsNameResolverTest#testNameServerCache is more reliable.
2017-02-13 18:36:06 -08:00
..
main/java/io/netty/resolver/dns DnsNameResolver should respect /etc/resolv.conf and /etc/resolver 2017-02-13 11:54:09 -08:00
test Correct unit test flaw introduced in 54c9ecf682 2017-02-13 18:36:06 -08:00