Add delay to deflake mainline tests MdnsIPv6LinkLocalWithDefaultRoute and IPv6LinkLocalWithDefaultRoute are flaky on APCT mainline testing. The new added route or interface address somehow does not apply immediately. If the DNS resolver call connect() right after that, EADDRNOTAVAIL can be returned. Added a short delay after adding route or interface address to avoid flaky. Bug: 247693272 Bug: 252944188 Test: 300 runs on ABTD, all passed Change-Id: Ie3192aad11bea205ad9bc5611a6a391f35fff4a0
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.