[Telepathy-commits] [telepathy-salut/master] saluttest: use EnsureChannel instead of CreateChannel when requesting contact list channels as they could already exist

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Dec 22 09:03:44 PST 2008


---
 tests/twisted/saluttest.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/twisted/saluttest.py b/tests/twisted/saluttest.py
index 5a4e540..ee14dc3 100644
--- a/tests/twisted/saluttest.py
+++ b/tests/twisted/saluttest.py
@@ -109,19 +109,19 @@ def wait_for_contact_list(q, conn):
     HT_CONTACT_LIST = 3
 
     # publish
-    requestotron.CreateChannel({
+    requestotron.EnsureChannel({
         'org.freedesktop.Telepathy.Channel.ChannelType': CHANNEL_TYPE_CONTACT_LIST,
         'org.freedesktop.Telepathy.Channel.TargetHandleType': HT_CONTACT_LIST,
         'org.freedesktop.Telepathy.Channel.TargetID': 'publish'})
     q.expect('dbus-signal', signal='NewChannel')
     # subscribe
-    requestotron.CreateChannel({
+    requestotron.EnsureChannel({
         'org.freedesktop.Telepathy.Channel.ChannelType': CHANNEL_TYPE_CONTACT_LIST,
         'org.freedesktop.Telepathy.Channel.TargetHandleType': HT_CONTACT_LIST,
         'org.freedesktop.Telepathy.Channel.TargetID': 'subscribe'})
     q.expect('dbus-signal', signal='NewChannel')
     # known
-    requestotron.CreateChannel({
+    requestotron.EnsureChannel({
         'org.freedesktop.Telepathy.Channel.ChannelType': CHANNEL_TYPE_CONTACT_LIST,
         'org.freedesktop.Telepathy.Channel.TargetHandleType': HT_CONTACT_LIST,
         'org.freedesktop.Telepathy.Channel.TargetID': 'known'})
-- 
1.5.6.5



More information about the Telepathy-commits mailing list