Merge "Fix flaky WifiTrackerTest"
This commit is contained in:
committed by
Android (Google) Code Review
commit
82157a06d8
@@ -723,9 +723,9 @@ public class WifiTrackerTest {
|
||||
CountDownLatch latch = new CountDownLatch(1);
|
||||
|
||||
// Once the new info has been fetched, we need to wait for the access points to be copied
|
||||
mAccessPointsChangedLatch = new CountDownLatch(1);
|
||||
doAnswer(invocation -> {
|
||||
latch.countDown();
|
||||
mAccessPointsChangedLatch = new CountDownLatch(1);
|
||||
return info;
|
||||
}).when(mockWifiManager).getConnectionInfo();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user