summaryrefslogtreecommitdiff
path: root/keystore/java/android/security/AndroidKeyStoreMaintenance.java
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2021-04-01 06:23:55 +0000
committerChalard Jean <jchalard@google.com>2021-04-01 06:27:46 +0000
commitea4d25a7504466362317d99deb9d9b20014e2e69 (patch)
tree92baf7f90a728387e97505efc28bcd3973e09dec /keystore/java/android/security/AndroidKeyStoreMaintenance.java
parent67b816def653cc4b81f836f858340231abb970fc (diff)
Fix testLegacyLockdownVpn flaky
When WiFi disconnects, the VPN disconnects immediately. The broadcast can therefore be sent before the broadcast receiver is registered, which causes the receiver to not see the broadcast. The puzzling part is that CONNECTIVITY_ACTION is a sticky broadcast, so one would expect the broadcast to still be received, even if the registration is done after the broadcast is sent. The reason this doesn't happen is that the context used by the test is a BroadcastInterceptingContext, which does not treat sticky broadcasts as sticky. Bug: 184115648 Test: atest --iterations 1000 'ConnectivityServiceTest#testLegacyLockdownVpn' Change-Id: Ib44c92839d25951cc7d2db0f923e1b104690e1e0
Diffstat (limited to 'keystore/java/android/security/AndroidKeyStoreMaintenance.java')
0 files changed, 0 insertions, 0 deletions