3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

autotests: Wait for ConnectHiddenNetwork to finish

This lets the testHiddenNetworks tests check if exceptions have been
raised, makes exceptions_test.py pass.
This commit is contained in:
Andrew Zaborowski 2018-07-22 14:15:15 +02:00 committed by Denis Kenzior
parent 2ca2d080d5
commit e084b11d39

View File

@ -386,6 +386,7 @@ class Device(IWDDBusAbstract):
self._iface.ConnectHiddenNetwork(name, dbus_interface=self._iface_name, self._iface.ConnectHiddenNetwork(name, dbus_interface=self._iface_name,
reply_handler=self._success, reply_handler=self._success,
error_handler=self._failure) error_handler=self._failure)
self._wait_for_async_op()
def start_adhoc(self, ssid, psk=None): def start_adhoc(self, ssid, psk=None):
self._prop_proxy.Set(IWD_DEVICE_INTERFACE, 'Mode', 'ad-hoc') self._prop_proxy.Set(IWD_DEVICE_INTERFACE, 'Mode', 'ad-hoc')