commit | 5c9c4207dea25affcbfea3230542b049d4e7a047 | [log] [tgz] |
---|---|---|
author | Paul Hu <paulhu@google.com> | Wed Jun 14 16:38:59 2023 +0800 |
committer | Paul Hu <paulhu@google.com> | Wed Jun 14 16:38:59 2023 +0800 |
tree | 01657007c84f29adf48933161e5e879e93d99767 | |
parent | 2f2ae4ef3399cdcfcf889b7cad62b7a37d61a073 [diff] |
Fix flaky test: testMobileDataPreferredUids The test is flaky because the wifi network unexpectedly sent a link properties change before switching the default network to cellular. To fix this problem, change to eventuallyExpect(), which can ignore the randomly triggered callbacks and wait for the expected callback. Fix: 284533959 Test: atest ConnectivityManagerTest#testMobileDataPreferredUids\ --iteration 20 Change-Id: Id023b4331c50ae01baf4785868432b207a16cf86