commit | 081a3a49e11cb57579bf67c250826c756b26036b | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Tue Jan 12 02:03:59 2021 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Mon Jan 18 17:28:52 2021 +0900 |
tree | 5d0abbb4f44c365fb277ea55f71176c11ec8b999 | |
parent | 3d37d92c097feae8e632fcd6533c8bda05aa6e5b [diff] |
Deflake testNetworkBlockedStatusAlwaysOnVpn This test flakes about 1% of the time on my device. This is due to the test calling expectNetworkRejectNonSecureVpn() before the handler thread has processed the call to setAlwaysOnVpnPackage. Fix this by waiting for callbacks where it is possible to do so, and by calling waitForIdle where it is not. Test: test-only change Change-Id: Ic5750d4fdf9e7e3654a2b6ade74da6bc5de18fb6