diff options
Diffstat (limited to 'tests/twisted/avahi/request-im.py')
-rw-r--r-- | tests/twisted/avahi/request-im.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/twisted/avahi/request-im.py b/tests/twisted/avahi/request-im.py index 93e3abf7..d7d2141e 100644 --- a/tests/twisted/avahi/request-im.py +++ b/tests/twisted/avahi/request-im.py @@ -5,11 +5,13 @@ Test requesting of text 1-1 channels using the old and new request API. import dbus -from saluttest import (exec_test, wait_for_contact_in_publish) +from saluttest import (exec_test, wait_for_contact_list, + wait_for_contact_in_publish) from servicetest import call_async, EventPattern, \ tp_name_prefix, make_channel_proxy from avahitest import get_host_name, AvahiAnnouncer from xmppstream import setup_stream_listener + import constants as cs def test(q, bus, conn): @@ -22,6 +24,10 @@ def test(q, bus, conn): contact_name = "test-request-im@" + get_host_name() listener, port = setup_stream_listener(q, contact_name) + # FIXME: this is a hack to be sure to have all the contact list channels + # announced so they won't interfere with the muc ones announces. + wait_for_contact_list(q, conn) + AvahiAnnouncer(contact_name, "_presence._tcp", port, basic_txt) handle = wait_for_contact_in_publish(q, bus, conn, contact_name) |