commit | b8faac4252be3c431db3175640b54a7661ee679b | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Sat Jun 20 11:11:44 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Sat Jun 20 12:43:30 2020 +0800 |
tree | cd9c296dc535c64673a56b1c0c8a2fe4d383f1ad | |
parent | 8430b00027c7077b4ecd258e4a604dff85963d32 [diff] |
Fix flaky tests due to onDnsEvent Since not every test checks onDnsEvent, a test might receive a DnsEvent which should have been catched by the previous test. Modify ExpectDnsEvent() to drop unexpected DnsEvents until the target DnsEvent is found. Bug: 159439402 Test: delayed the resolver to send DnsEvents, and ran resolv_integration_test Change-Id: Id06546fca9438f89aaa2af383b34b52b7e536e26
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.