[Telepathy-commits] [telepathy-gabble/master] test-outgoing-call.py: add a hackish workaround for fd.o#15769 so we don't need to fix it right now
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Aug 19 10:52:00 PDT 2008
20080430171720-53eee-9c0ce3b9e74d604d8c494d3d1da302e78821569f.gz
---
tests/twisted/jingle/test-outgoing-call.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/jingle/test-outgoing-call.py b/tests/twisted/jingle/test-outgoing-call.py
index 6724a6f..cee66a2 100644
--- a/tests/twisted/jingle/test-outgoing-call.py
+++ b/tests/twisted/jingle/test-outgoing-call.py
@@ -6,6 +6,7 @@ when the remote party accepts the call.
from gabbletest import exec_test, make_result_iq
from servicetest import make_channel_proxy, unwrap, tp_path_prefix
+from twisted.words.xish import domish
import jingletest
import gabbletest
import dbus
@@ -46,6 +47,16 @@ 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')
+ # FIXME: Hack to make sure the disco info has been processed - we need to
+ # send Gabble some XML that will cause an event when processed, and
+ # wait for that event (until
+ # https://bugs.freedesktop.org/show_bug.cgi?id=15769 is fixed)
+ el = domish.Element(('jabber.client', 'presence'))
+ el['from'] = 'bob at example.com/Bar'
+ stream.send(el.toXml())
+ q.expect('dbus-signal', signal='PresenceUpdate')
+ # OK, now we can continue. End of hack
+
media_iface.RequestStreams(handle, [0]) # 0 == MEDIA_STREAM_TYPE_AUDIO
# S-E gets notified about new session handler, and calls Ready on it
--
1.5.6.3
More information about the Telepathy-commits
mailing list