commit | bc4b9508d6d5bb209e1ddacd64efc38c0a8f1e19 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri Mar 20 13:14:00 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Fri Mar 20 17:23:37 2020 +0800 |
tree | f432792b09ff8fa741b0ee04a5e559c6096cbdee | |
parent | dde25bcdf602f9c941473324281675d9d3e1eed9 [diff] |
Fix flaky test RepeatedSetup_NoRedundantPrivateDnsValidation There is a time gap between the time when PrivateDnsConfiguration reports onPrivateDnsValidationEvent and the time when PrivateDnsConfiguration updates its map which is used for tracking validation threads. If the test starts a subsequent setup (which expects the resolver to begin a new validation) before PrivateDnsConfiguration updates the map, the expected validation won't start because PrivateDnsConfiguration thinks the previous validation hasn't finished. This change is a workaround which adds waiting time to avoid the timing issue, and the test running time increases 300ms. Bug: 150678049 Bug: 151990391 Test: resolv_integration_test passed Change-Id: I176d7d20b7edc79b37b954602961c149aef64348
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.