diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-08-09 15:04:36 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-08-09 15:04:36 +0200 |
commit | e018150304cf0c329d4fc829d4576caa6ce41226 (patch) | |
tree | 2d0665467ddcb0664b810566ae8fc6c11c20ee08 | |
parent | 81ffe363a259e1060dcb1b0b4b3f2958d9b0b755 (diff) | |
download | gnome-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-x | tests/integration-test.py | 1 |
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) |