commit | 353ec97c64d36a4dee81bbb0e3b58415956d9860 | [log] [tgz] |
---|---|---|
author | Junyu Lai <junyulai@google.com> | Tue Aug 08 13:24:08 2023 +0800 |
committer | Junyu Lai <junyulai@google.com> | Wed Aug 09 14:44:23 2023 +0800 |
tree | 8b8e5d6446beb28dce215a76754c47d2145584a4 | |
parent | 8ba50ae30fe0abdf9f7e7f0b67c60574d8171671 [diff] |
Fix flaky test: testDataMigration_differentFromFallback Test main thread mocked settings object but use that on the handler thread as well, which is not thread-safe. Create a real object instead of mocking it instead. Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest#testDataMigration_differentFromFallback \ --rerun-until-failure 500 Fix: 289705810 Change-Id: Ibfb722818467fdf2b69a4b8fa87b4ac04a713573