diff options
author | lutina <lutina@google.com> | 2019-07-05 14:42:33 +0800 |
---|---|---|
committer | Ben Liao <liaob@google.com> | 2019-07-05 07:16:02 +0000 |
commit | 49d3e51c4cc733fd15fd43b1f1197a36f0d5aa7f (patch) | |
tree | 1c143cf38b164700102284fbade8dbc50c638128 | |
parent | f4fa04e7680e8614362f0bf0ae80e1f0e01c0b57 (diff) | |
download | platform_tools_test_connectivity-android10-dev.tar.gz platform_tools_test_connectivity-android10-dev.tar.bz2 platform_tools_test_connectivity-android10-dev.zip |
Adding scan function before DUT connectedandroid10-dev
The expected connection time(10 seconds) is too short if we want to wait DUT scan automatically and connect to network.
You can add start_wifi_connection_scan_and_return_status before wait_for_connect before connected to trigger scan manually.
Bug: 134550860
Test: Local test 30 cycles passed
Change-Id: I37998ce444b775b936c7ffb8998cb94b7e6cf065
-rwxr-xr-x | acts/tests/google/wifi/WifiNetworkSuggestionTest.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/acts/tests/google/wifi/WifiNetworkSuggestionTest.py b/acts/tests/google/wifi/WifiNetworkSuggestionTest.py index df68e1e974..5cb27767f7 100755 --- a/acts/tests/google/wifi/WifiNetworkSuggestionTest.py +++ b/acts/tests/google/wifi/WifiNetworkSuggestionTest.py @@ -127,6 +127,7 @@ class WifiNetworkSuggestionTest(WifiBaseTest): # Enable suggestions by the app. self.dut.log.debug("Enabling suggestions from test"); self.set_approved(True) + wutils.start_wifi_connection_scan_and_return_status(self.dut) wutils.wait_for_connect(self.dut, expected_ssid) if expect_post_connection_broadcast is None: |