Merge "waitForIdle to avoid stubbing mocked bpfNetMaps while CS is accessing" into main
This commit is contained in:
commit
65bb6527cd
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue