summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-08-09 15:04:36 +0200
committerBastien Nocera <hadess@hadess.net>2022-08-09 15:04:36 +0200
commite018150304cf0c329d4fc829d4576caa6ce41226 (patch)
tree2d0665467ddcb0664b810566ae8fc6c11c20ee08
parent81ffe363a259e1060dcb1b0b4b3f2958d9b0b755 (diff)
downloadgnome-bluetooth-e018150304cf0c329d4fc829d4576caa6ce41226.tar.gz
tests: Avoid race in test_connectable_devices
Traceback (most recent call last): File "/builds/GNOME/gnome-bluetooth/_build/../tests/integration-test.py", line 429, in test_connectable_devices self.assertEqual(list_store.get_n_items(), 3) AssertionError: 0 != 3
-rwxr-xr-xtests/integration-test.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/integration-test.py b/tests/integration-test.py
index 3f055599..e7ebf7ef 100755
--- a/tests/integration-test.py
+++ b/tests/integration-test.py
@@ -426,6 +426,7 @@ class OopTests(dbusmock.DBusTestCase):
self.wait_for_mainloop()
list_store = client.get_devices()
+ self.wait_for_condition(lambda: list_store.get_n_items() == 3)
self.assertEqual(list_store.get_n_items(), 3)
device = list_store.get_item(0)