Skip to contentSkip to conversation

auto-t: testFT-PSK-roam wait for connected

PATCH Applied James Prestwood 2 participants 2 messages Feb 3, 2021 – Feb 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 auto-t: testFT-PSK-roam wait for connected

Rather than assert its better to wait for a connected state.

---
 autotests/testFT-PSK-roam/connection_test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
autotests/testFT-PSK-roam/connection_test.py +2 -1
index 8e69fcd5..a7acf495 100644
@@ -90,7 +90,8 @@ class Test(unittest.TestCase):
         condition = 'obj.state != DeviceState.roaming'
         wd.wait_for_object_condition(device, condition)
 
-        self.assertEqual(device.state, iwd.DeviceState.connected)
+        condition = 'obj.state == DeviceState.connected'
+        wd.wait_for_object_condition(device, condition)
         self.assertTrue(self.bss_hostapd[1].list_sta())
 
         testutil.test_iface_operstate(device.name)
Signature · 1 line
2.26.2
#1 lore raw

Hi James,

Quoted 6 lines · James Prestwood

Rather than assert its better to wait for a connected state.

---
  autotests/testFT-PSK-roam/connection_test.py | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks.

Regards,
-Denis