mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +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:
parent
2ca2d080d5
commit
e084b11d39
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user