summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkCapabilitiesTest.java
diff options
context:
space:
mode:
authorChiachang Wang <chiachangwang@google.com>2021-07-27 14:00:17 +0800
committerChiachang Wang <chiachangwang@google.com>2021-07-27 15:13:52 +0800
commiteb25674b5c66f4a7f42962f0a3365fb18ae67855 (patch)
treee8cb70e5b3b3d085330cdf9e38fdff3da763423f /tests/common/java/android/net/NetworkCapabilitiesTest.java
parent9ad8acd76e85dcc7474664302f0c03d5d4fd7719 (diff)
Retry and ignore ConcurrentModificationException
The flaky callstack shows that it hits the exception in the initialization of HashSet. The mNetworkRequests is accessed in the ConnectivityService handler thread except dump(). The ConcurrentModificationException should not happen in the other flow. Thus, retry to get the current requests when the dump() hits the ConcurrentModificationException to prevent flaky test. Bug: 188373832 Test: atest ConnectivityServiceTest#testDumpDoesNotCrash\ --iteration 100 Change-Id: I9625919faf947c9488764b92093ed8105271c927
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions