Bugfix:com.android.server.nearby.fastpair.cache.FastPairCacheManagerTest#getAllInfo fail
Test fails on MTS but works fine on Eng atest. Ideally, save one DiscoveryItem, the size should be 1, save two items, the size should be 2. But in Eng atest, the result shows that there seems to be an extra DiscoveryItem stored in the database. After investigation, found that the extra one is from another test case: saveRetrieveInfo, where another DiscoveryItem was saved to the database. Since tests can be run in parallel, sometimes one test may run before or after another. So, it may have different test results. Combining the two tests into a single test and letting them run sequentially solved the problem. Bug: 238394647 Test: unit test Change-Id: I9536ce6ad4fff78188f0ceb325d275b05aa47da4 Merged-In: I9536ce6ad4fff78188f0ceb325d275b05aa47da4
Loading
Please register or sign in to comment