[Telepathy-commits] [telepathy-gabble/master] test-outgoing-call.py: Don't expect to see a NewSessionHandler until we RequestStreams

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Aug 19 10:52:03 PDT 2008


20080430162348-53eee-91ba72d5ce4419e69de513b96ba8c2f632361711.gz
---
 tests/twisted/jingle/test-outgoing-call.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/twisted/jingle/test-outgoing-call.py b/tests/twisted/jingle/test-outgoing-call.py
index 31dea68..6724a6f 100644
--- a/tests/twisted/jingle/test-outgoing-call.py
+++ b/tests/twisted/jingle/test-outgoing-call.py
@@ -46,6 +46,8 @@ def test(q, bus, conn, stream):
     media_iface = make_channel_proxy(conn, path, 'Channel.Type.StreamedMedia')
     group_iface = make_channel_proxy(conn, path, 'Channel.Interface.Group')
 
+    media_iface.RequestStreams(handle, [0]) # 0 == MEDIA_STREAM_TYPE_AUDIO
+
     # S-E gets notified about new session handler, and calls Ready on it
     e = q.expect('dbus-signal', signal='NewSessionHandler')
     assert e.args[1] == 'rtp'
@@ -53,9 +55,6 @@ def test(q, bus, conn, stream):
     session_handler = make_channel_proxy(conn, e.args[0], 'Media.SessionHandler')
     session_handler.Ready()
 
-
-    media_iface.RequestStreams(handle, [0]) # 0 == MEDIA_STREAM_TYPE_AUDIO
-
     e = q.expect('dbus-signal', signal='NewStreamHandler')
 
     stream_handler = make_channel_proxy(conn, e.args[0], 'Media.StreamHandler')
-- 
1.5.6.3




More information about the Telepathy-commits mailing list