summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBindu Mahadev <bmahadev@google.com>2017-02-10 09:05:07 -0800
committerBindu Mahadev <bmahadev@google.com>2017-02-10 11:21:57 -0800
commit33a6b2b7a8830ab894554f569739452a9d7b183e (patch)
tree22648c777bfdd3a43a5418ab5e20663d3ae68455
parent922952c93dc34d4d0b57b25c6c997019b4895bbf (diff)
downloadplatform_tools_test_connectivity-33a6b2b7a8830ab894554f569739452a9d7b183e.tar.gz
platform_tools_test_connectivity-33a6b2b7a8830ab894554f569739452a9d7b183e.tar.bz2
platform_tools_test_connectivity-33a6b2b7a8830ab894554f569739452a9d7b183e.zip
[Tests]Correct the failing condition for softAP test.
We have to assert fail if wifi was initially disabled, and enabled after softAP. We were asserting even it was disabled, which is the expected behavior. Bug:35158931 Change-Id: Ie0c0172566a0f5f917c3256e5f4009e29b3172f7
-rw-r--r--acts/tests/google/wifi/WifiSoftApTest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/acts/tests/google/wifi/WifiSoftApTest.py b/acts/tests/google/wifi/WifiSoftApTest.py
index 7a7e4b4045..40f70e2a64 100644
--- a/acts/tests/google/wifi/WifiSoftApTest.py
+++ b/acts/tests/google/wifi/WifiSoftApTest.py
@@ -173,7 +173,7 @@ class WifiSoftApTest(base_test.BaseTestClass):
event = self.dut.ed.pop_event("WifiManagerApDisabled", 5)
if initial_wifi_state:
self.verify_return_to_wifi_enabled()
- elif not self.dut.droid.wifiCheckState():
+ elif self.dut.droid.wifiCheckState():
# really need to verify that wifi did not come back up, and will not
# TODO(silberst): look at alternatives to this simple check
asserts.fail("Wifi was disabled before softap and now it is enabled")
@@ -227,7 +227,7 @@ class WifiSoftApTest(base_test.BaseTestClass):
"SoftAp is still reported as running")
if initial_wifi_state:
self.verify_return_to_wifi_enabled()
- elif not self.dut.droid.wifiCheckState():
+ elif self.dut.droid.wifiCheckState():
asserts.fail("Wifi was disabled before softap and now it is enabled")
""" Tests End """