commit | 7ddb6e209bf9825b58ced561111ffc7a2287fa8c | [log] [tgz] |
---|---|---|
author | Pavel Grafov <pgrafov@google.com> | Fri Apr 27 14:41:00 2018 +0100 |
committer | Pavel Grafov <pgrafov@google.com> | Fri Apr 27 16:54:07 2018 +0100 |
tree | f8b3984aa4b84b38b4f31932a16a0310df268131 | |
parent | 0752bfb6dd1a3ee6d6a7b8e6eabd6ac1c7bc88fa [diff] |
Fix network logging cts test. There is a lag between sending enough network events and receiving a broadcast, during that time server socket is closed, which causes busy loop spewing exceptions to the log. Checking if the socket is closed is more reliable. + sprinkled some finals. Change-Id: I02802af768c58f4af898c20f893a3590f60e4ec0 Fixes: 78517818 Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLogging_multipleBatches