summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-01-05 14:10:03 +0100
committerBastien Nocera <hadess@hadess.net>2022-01-05 14:13:08 +0100
commitbf7dc39fbc4df633a57fbe398a6d8cc654659418 (patch)
tree0596ee4e1032a0779fbf943f95b10fe8990e1cf0 /tests
parent701edabd2a00a4a12d84e17db1cef7aa62495b54 (diff)
downloadgnome-bluetooth-bf7dc39fbc4df633a57fbe398a6d8cc654659418.tar.gz
tests: Fix old default adapter reinsertion test
We weren't waiting for a mainloop update, so the newly added adapter never got processed.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/integration-test2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/integration-test b/tests/integration-test
index 9355bc87..c6798ef5 100755
--- a/tests/integration-test
+++ b/tests/integration-test
@@ -228,6 +228,8 @@ class OopTests(dbusmock.DBusTestCase):
# Re-add the old adapter, device is still there
dbusmock_bluez.AddAdapter('hci1', 'hci1')
+ self.wait_for_condition(lambda: self.client.props.num_adapters == 2)
+ self.assertEqual(self.client.props.num_adapters, 2)
# GListModel
self.assertEqual(list_store.get_n_items(), 1)