Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH 1/2] auto-t: remove scanning wait from testConnectAutoconnect
@ 2020-05-06 15:58 James Prestwood
  2020-05-06 15:58 ` [PATCH 2/2] auto-t: remove scanning wait from testHiddenNetworks James Prestwood
  2020-05-06 16:46 ` [PATCH 1/2] auto-t: remove scanning wait from testConnectAutoconnect Kourt, Tim A
  0 siblings, 2 replies; 5+ messages in thread
From: James Prestwood @ 2020-05-06 15:58 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]

In certain cases the test was reaching this point once already finished
with a scan. This caused the wait for 'scanning' to time out. At this point
in the test we don't need to wait for scanning and only need to wait for
scanning to finish. If scanning is already finished before validation we
can simply validate at that time.
---
 autotests/testConnectAutoconnect/validation.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/autotests/testConnectAutoconnect/validation.py b/autotests/testConnectAutoconnect/validation.py
index 43cbaf02..b1e3accc 100644
--- a/autotests/testConnectAutoconnect/validation.py
+++ b/autotests/testConnectAutoconnect/validation.py
@@ -54,9 +54,6 @@ class TestConnectAutoConnect(unittest.TestCase):
         self.assertIsNotNone(devices)
         device = devices[0]
 
-        condition = 'obj.scanning'
-        wd.wait_for_object_condition(device, condition)
-
         condition = 'not obj.scanning'
         wd.wait_for_object_condition(device, condition)
 
-- 
2.21.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-06 17:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-06 15:58 [PATCH 1/2] auto-t: remove scanning wait from testConnectAutoconnect James Prestwood
2020-05-06 15:58 ` [PATCH 2/2] auto-t: remove scanning wait from testHiddenNetworks James Prestwood
2020-05-06 16:46 ` [PATCH 1/2] auto-t: remove scanning wait from testConnectAutoconnect Kourt, Tim A
2020-05-06 16:52   ` James Prestwood
2020-05-06 17:02     ` Kourt, Tim A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox