Merge "Added assertion message to testDns failures" into lollipop-mr1-cts-dev
am: 350b2aa * commit '350b2aae5bc303d094a540c12bcb650a8bf5e139': Added assertion message to testDns failures Change-Id: I347197b0db859e3875b14701424d2d55d9059d32
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