summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtan Cohen <etancohen@google.com>2017-04-25 07:57:52 -0700
committerEtan Cohen <etancohen@google.com>2017-04-25 07:57:52 -0700
commiteb7eaf9747051e75519bd12c93c40bca866c456c (patch)
tree5ef4b56c94a237c607a3859ffd8308e3563486ec
parentfc927dffb22be14b003e3343646982cd2dab2d4e (diff)
[AWARE] Fix broken unit test due to init mod to NativeManager
Initialization of WifiAwareNativeManager was changed to prevent a race condition: moved from constructor to a separate (lazy init) start() method. The unit-test was not modified to call this new method and so was failing. Bug: 37660993 Test: unit tests now pass Change-Id: If0714fb57e959307fa40bc71327e108795b795cc
-rw-r--r--tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
index 50a2e0d4d..ba984b8a7 100644
--- a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
@@ -73,6 +73,7 @@ public class WifiAwareNativeManagerTest {
mDut = new WifiAwareNativeManager(mWifiAwareStateManagerMock,
mHalDeviceManager, mWifiAwareNativeCallback);
+ mDut.start();
mInOrder = inOrder(mWifiAwareStateManagerMock, mHalDeviceManager);
}