[Telepathy-commits] [telepathy-gabble/master] offer-accept-private-dbus-stream-tube: sync_dbus to ensure all contact list channels have been announced
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Feb 27 04:48:30 PST 2009
---
.../tubes/offer-accept-private-dbus-stream-tube.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/tubes/offer-accept-private-dbus-stream-tube.py b/tests/twisted/tubes/offer-accept-private-dbus-stream-tube.py
index 58d09d3..3a20074 100644
--- a/tests/twisted/tubes/offer-accept-private-dbus-stream-tube.py
+++ b/tests/twisted/tubes/offer-accept-private-dbus-stream-tube.py
@@ -6,7 +6,7 @@ import dbus
from dbus.connection import Connection
from dbus.lowlevel import SignalMessage
-from servicetest import call_async, EventPattern, watch_tube_signals
+from servicetest import call_async, EventPattern, watch_tube_signals, sync_dbus
from gabbletest import acknowledge_iq, sync_stream
import constants as cs
import ns
@@ -98,6 +98,10 @@ def test(q, bus, conn, stream, bytestream_cls):
# A tube request can be done only if the contact has tube capabilities
# Ensure that Bob's caps have been received
sync_stream(q, stream)
+ # Also ensure that all the new contact list channels have been announced,
+ # so that the NewChannel(s) signals we look for after calling
+ # RequestChannel are the ones we wanted.
+ sync_dbus(bus, q, conn)
# new requestotron
requestotron = dbus.Interface(conn, cs.CONN_IFACE_REQUESTS)
--
1.5.6.5
More information about the telepathy-commits
mailing list