summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-18 19:26:09 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-27 15:40:39 +0000
commit60c441cfcfbe58882576e4fcdcbe34ff9c75bf42 (patch)
tree8189f9f189a8fd1d793c41f8e3b847616b1bc12c
parentcd4d6ab27c9d5a327c4582a246e2629a1a7e3f01 (diff)
mctest: use the AccountManager path for 'MC' object so we can use sync_dbus
It needs to be an object path at which we export a known interface with properties.
-rw-r--r--tests/twisted/mctest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/twisted/mctest.py b/tests/twisted/mctest.py
index 5d4ab933..c36b1f4e 100644
--- a/tests/twisted/mctest.py
+++ b/tests/twisted/mctest.py
@@ -76,7 +76,9 @@ class MC(dbus.proxies.ProxyObject):
dbus.proxies.ProxyObject.__init__(self,
conn=bus,
bus_name=cs.MC,
- object_path=cs.MC_PATH,
+ # We need to use an object path that actually exists because
+ # otherwise sync_dbus won't work correctly.
+ object_path=cs.AM_PATH,
follow_name_owner_changes=True)
self.connectivity = FakeConnectivity(queue, bus, initially_online)