commit | a4d7bb980441bb93f4b33f88e012721663c548ca | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Wed Mar 02 13:41:48 2022 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Mar 02 18:00:04 2022 +0800 |
tree | 1aa511b7f06e266519f2a1d7a3ba6e176ab684ff | |
parent | f696ba345dc1d323459d55aea88fed583a581232 [diff] |
Fix PrivateDnsDohTest.ExcessDnsRequests not to interfere other tests Before this change, DnsResolver reconnects the server after this test ends. This causes other tests being flaky, especially for those test that check the number of connections. A known example is running PrivateDnsDohTest.SessionResumption after PrivateDnsDohTest.ExcessDnsRequests. Therefore, this change adds some code in the test to prevent it. Bug: 222023286 Test: run resolv_integration_test64 --gtest_filter="*SessionResumption*:*ExcessDnsRequests*" Change-Id: Id11eb8d984128bc2b336d2939ae129eebeb17807
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.