| commit | bae070bf80be5765d60256ae2402cdb0405387cf | [log] [tgz] |
|---|---|---|
| author | Junyu Lai <junyulai@google.com> | Tue Aug 30 18:04:15 2022 +0800 |
| committer | Junyu Lai <junyulai@google.com> | Mon Sep 05 16:17:57 2022 +0800 |
| tree | 9df6bd92807e2945444a9dc90176cd30b16561c1 | |
| parent | d407328dd4fa067801b0bef861e3dad272ee78e3 [diff] |
Migrate NetworkStatsServiceTest from when().thenReturn() to doReturn().when()
This will address flakiness issues arising from the use of
when() in multithread context.
Fix: 243658074
Test: atest com.android.server.net.NetworkStatsServiceTest#testDataMigration_differentFromFallback \
--rerun-until-failure 1000
Change-Id: I047050ef14cb60658098ff7803c6773907a92919