[Telepathy-commits] [telepathy-salut/master] test-two-muc-stream-tubes: wait that we have joined the muc before offering the tube
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Mar 11 09:15:35 PDT 2009
---
tests/twisted/avahi/test-two-muc-stream-tubes.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/avahi/test-two-muc-stream-tubes.py b/tests/twisted/avahi/test-two-muc-stream-tubes.py
index d587183..e62fa84 100644
--- a/tests/twisted/avahi/test-two-muc-stream-tubes.py
+++ b/tests/twisted/avahi/test-two-muc-stream-tubes.py
@@ -297,6 +297,7 @@ def test(q, bus, conn):
got_text = True
assert props[REQUESTED] == False
group1 = make_channel_proxy(conn, path, "Channel.Interface.Group")
+ txt_path = path
elif props[CHANNEL_TYPE] == CHANNEL_TYPE_TUBES:
got_tubes = True
assert props[REQUESTED] == False
@@ -325,6 +326,10 @@ def test(q, bus, conn):
state = contact1_stream_tube.Get(CHANNEL_IFACE_TUBE, 'State', dbus_interface=PROPERTIES_IFACE)
assert state == TUBE_CHANNEL_STATE_NOT_OFFERED
+ # added as member
+ q.expect('dbus-signal', signal='MembersChanged', path=txt_path,
+ args=['', [conn1_self_handle], [], [], [], conn1_self_handle, 0])
+
call_async(q, contact1_stream_tube, 'OfferStreamTube', SOCKET_ADDRESS_TYPE_UNIX,
dbus.ByteArray(server_socket_address), SOCKET_ACCESS_CONTROL_LOCALHOST, "", sample_parameters)
--
1.5.6.5
More information about the telepathy-commits
mailing list