[Telepathy-commits] [telepathy-salut/master] test-roomlist.py: hack to wait for the contact list channels

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Nov 25 03:46:14 PST 2008


---
 tests/twisted/avahi/test-roomlist.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/avahi/test-roomlist.py b/tests/twisted/avahi/test-roomlist.py
index 1feeb2d..f3bba40 100644
--- a/tests/twisted/avahi/test-roomlist.py
+++ b/tests/twisted/avahi/test-roomlist.py
@@ -21,6 +21,15 @@ def test(q, bus, conn):
 
     q.expect('dbus-signal', signal='StatusChanged', args=[0L, 0L])
 
+    # FIXME: this is a hack to be sure to have all the contact list channels
+    # announced so they won't interfere with the roomlist ones announces.
+    # publish
+    q.expect('dbus-signal', signal='NewChannel')
+    # subscribe
+    q.expect('dbus-signal', signal='NewChannel')
+    # known
+    q.expect('dbus-signal', signal='NewChannel')
+
     # check if we can request roomlist channels
     properties = conn.GetAll(
             tp_name_prefix + '.Connection.Interface.Requests',
-- 
1.5.6.5




More information about the Telepathy-commits mailing list