From cf3ea5d4dfd903bab812e98bd843f8d602d4f0c4 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 10 Sep 2020 16:12:45 -0700 Subject: [PATCH] auto-t: fix testWPA2 to wait for device object --- autotests/testWPA2/connection_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/testWPA2/connection_test.py b/autotests/testWPA2/connection_test.py index dcb4722e..3ff9b50f 100644 --- a/autotests/testWPA2/connection_test.py +++ b/autotests/testWPA2/connection_test.py @@ -38,8 +38,8 @@ class Test(unittest.TestCase): ordered_network.network_object.connect() - condition = 'obj.connected' - wd.wait_for_object_condition(ordered_network.network_object, condition) + condition = 'obj.state == DeviceState.connected' + wd.wait_for_object_condition(device, condition) testutil.test_iface_operstate() testutil.test_ifaces_connected()