summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-12-01 17:31:48 +0100
committerBastien Nocera <hadess@hadess.net>2021-12-02 12:02:42 +0100
commit095e2b93b25b56ce30f1a928c3ee406dc72d479f (patch)
tree21d030536823e7dfbb47d239069b234d7b5c9182 /tests
parentce0eccc2d1b5d81746d2a89350e76a509fb73f4f (diff)
downloadgnome-bluetooth-095e2b93b25b56ce30f1a928c3ee406dc72d479f.tar.gz
tests: Verify values after wait_for_condition()
Since we made it possible for wait_for_condition() to return before the condition was actually reached, to avoid build system test timeout, make sure to double-check the conditions we're waiting for were actually achieved.
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 7c9a823d..aa94d156 100755
--- a/tests/integration-test
+++ b/tests/integration-test
@@ -96,6 +96,7 @@ class OopTests(dbusmock.DBusTestCase):
def test_one_device(self):
self.wait_for_condition(lambda: self.client.props.num_adapters != 0)
+ self.assertEqual(self.client.props.num_adapters, 1)
# GListStore
list_store = self.client.get_devices()
@@ -126,6 +127,7 @@ class OopTests(dbusmock.DBusTestCase):
'Connected': True,
})
self.wait_for_condition(lambda: received_notification == True)
+ self.assertEqual(received_notification, True)
self.assertEqual(device.props.connected, True)
def test_device_removal(self):