From a9e726e2c9d5a55b795015ec7e5592ad91f100e1 Mon Sep 17 00:00:00 2001 From: "zhibo.chang" Date: Wed, 30 Oct 2019 14:44:34 +0800 Subject: [PATCH] Fix the failed case for the VtsHalWifiSupplicantV1_2Host#SupplicantStaIfaceHidlTest.RegisterCallback_1_2 From the log and case logic,when assertTrue isSupplicantRunning is not the real wpa_supplicant status. So occasionally there will be a timeout when waiting for a callback in the waitForHidlService method. Because this is a low memory version and it is gsi image, we can't modify the image, so we can solve it by extending the time. Bug:[142585026] Test:run vts of the VtsHalWifiSupplicantV1_2Host. Change-Id: Ideef032d310165d956c3ca0967b26bc3e3f44c3b --- wifi/hostapd/1.0/vts/functional/hostapd_hidl_test_utils.cpp | 2 +- .../1.0/vts/functional/supplicant_hidl_test_utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wifi/hostapd/1.0/vts/functional/hostapd_hidl_test_utils.cpp b/wifi/hostapd/1.0/vts/functional/hostapd_hidl_test_utils.cpp index 1c499e7465..cdbf1ab589 100644 --- a/wifi/hostapd/1.0/vts/functional/hostapd_hidl_test_utils.cpp +++ b/wifi/hostapd/1.0/vts/functional/hostapd_hidl_test_utils.cpp @@ -139,7 +139,7 @@ void startHostapdAndWaitForHidlService() { HostapdManager hostapd_manager; ASSERT_TRUE(hostapd_manager.StartHostapd()); - ASSERT_TRUE(notification_listener->waitForHidlService(200, service_name)); + ASSERT_TRUE(notification_listener->waitForHidlService(500, service_name)); } bool is_1_1(const sp& hostapd) { diff --git a/wifi/supplicant/1.0/vts/functional/supplicant_hidl_test_utils.cpp b/wifi/supplicant/1.0/vts/functional/supplicant_hidl_test_utils.cpp index 47c3056000..7bd04dc0c2 100644 --- a/wifi/supplicant/1.0/vts/functional/supplicant_hidl_test_utils.cpp +++ b/wifi/supplicant/1.0/vts/functional/supplicant_hidl_test_utils.cpp @@ -175,7 +175,7 @@ void startSupplicantAndWaitForHidlService() { ASSERT_TRUE(supplicant_manager.StartSupplicant()); ASSERT_TRUE(supplicant_manager.IsSupplicantRunning()); - ASSERT_TRUE(notification_listener->waitForHidlService(200, service_name)); + ASSERT_TRUE(notification_listener->waitForHidlService(500, service_name)); } bool is_1_1(const sp& supplicant) {