Merge "Merge "Added assertion message to testDns failures" into lollipop-mr1-cts-dev am: 350b2aa" into marshmallow-cts-dev am: 936375b am: 2bfd0e1 am: 2a0f366 am: 39cb9a5 am: 7cde9a8 am: 6d3841c
am: 59c1898 * commit '59c189830e2be88486ecbfcd3a2939852fb82e37': Added assertion message to testDns failures Change-Id: I2291f8204ae97521068fb65dffa6bd8d657ad2a9
This commit is contained in:
@@ -62,7 +62,8 @@ public class DnsTest extends AndroidTestCase {
|
||||
try {
|
||||
addrs = InetAddress.getAllByName("www.google.com");
|
||||
} catch (UnknownHostException e) {}
|
||||
assertTrue(addrs.length != 0);
|
||||
assertTrue("[RERUN] DNS could not resolve www.gooogle.com. Check internet connection",
|
||||
addrs.length != 0);
|
||||
boolean foundV4 = false, foundV6 = false;
|
||||
for (InetAddress addr : addrs) {
|
||||
if (addr instanceof Inet4Address) foundV4 = true;
|
||||
|
||||
Reference in New Issue
Block a user