diff options
author | Rebecca Silberstein <silberst@google.com> | 2016-02-22 15:35:33 -0800 |
---|---|---|
committer | Rebecca Silberstein <silberst@google.com> | 2016-02-23 08:54:01 -0800 |
commit | 823af138d63dc96224976b2a5ad6e9b1b224581e (patch) | |
tree | 4ae806055a7f18ad9fe0511e6a3df03afa047a4f /tests | |
parent | 89901c4bde80282b02a786e580f9bc75984bd4de (diff) |
Remove use of MockLooper AutoDispatch from non-blocking calls
AutoDispatch is not needed with non-blocking sendMessage calls. Remove
two instances of this error.
BUG=27278081
Change-Id: Id346d76e971c361149ae885a8b8056660b61e5f3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java b/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java index a8d06ac33..2ab308a22 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java @@ -765,9 +765,8 @@ public class WifiStateMachineTest { dhcpResults.addDns("8.8.8.8"); dhcpResults.setLeaseDuration(3600); - mLooper.startAutoDispatch(); mTestIpManager.injectDhcpSuccess(dhcpResults); - mLooper.stopAutoDispatch(); + mLooper.dispatchAll(); assertEquals("ConnectedState", getCurrentState().getName()); } @@ -794,9 +793,8 @@ public class WifiStateMachineTest { assertEquals("ObtainingIpState", getCurrentState().getName()); - mLooper.startAutoDispatch(); mTestIpManager.injectDhcpFailure(); - mLooper.stopAutoDispatch(); + mLooper.dispatchAll(); assertEquals("DisconnectingState", getCurrentState().getName()); } |