[gnome-bluetooth/wip/hadess/agent-fixes: 3/3] tests: Test that we unregister the pairing agent correctly
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/agent-fixes: 3/3] tests: Test that we unregister the pairing agent correctly
- Date: Wed, 15 Dec 2021 16:16:47 +0000 (UTC)
commit 777dcf752c4bf3dadf645c7da36b7ae4edd78067
Author: Bastien Nocera <hadess hadess net>
Date: Wed Dec 15 14:43:31 2021 +0100
tests: Test that we unregister the pairing agent correctly
tests/integration-test | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
---
diff --git a/tests/integration-test b/tests/integration-test
index 131dcfe4..502c63e2 100755
--- a/tests/integration-test
+++ b/tests/integration-test
@@ -306,8 +306,26 @@ class OopTests(dbusmock.DBusTestCase):
self.assertIsNotNone(agent)
# Process D-Bus daemon appearing and agent being registered
self.wait_for_mainloop()
+
self.assertTrue(agent.register())
+ self.wait_for_mainloop()
+
self.assertTrue(agent.unregister())
+ self.wait_for_mainloop()
+
+ # Check that we don't have a re-register warning
+ self.assertTrue(agent.register())
+ self.wait_for_mainloop()
+
+ agent.unregister()
+ self.wait_for_mainloop()
+
+ # And try again
+ agent = GnomeBluetoothPriv.Agent.new ('/org/gnome/bluetooth/integration_test')
+ self.assertIsNotNone(agent)
+ self.wait_for_mainloop()
+ agent.unregister()
+ self.wait_for_mainloop()
class Tests(dbusmock.DBusTestCase):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]