Merge "waitForIdle to avoid stubbing mocked bpfNetMaps while CS is accessing" into main

This commit is contained in:
Treehugger Robot 2024-06-07 03:51:14 +00:00 • committed by Gerrit Code Review
commit 65bb6527cd

View file

@ -387,6 +387,10 @@ class CSBlockedReasonsTest : CSTest() {
BLOCKED_REASON_NETWORK_RESTRICTED or BLOCKED_REASON_APP_BACKGROUND
)
}
// waitForIdle since stubbing bpfNetMaps while CS handler thread calls
// bpfNetMaps.getNetPermForUid throws exception.
// ConnectivityService might haven't finished checking blocked status for all requests.
waitForIdle()
// Disable background firewall chain
doReturn(BLOCKED_REASON_NONE)