summaryrefslogtreecommitdiff
path: root/tests/test_stream_xep_0030.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_stream_xep_0030.py')
-rw-r--r--tests/test_stream_xep_0030.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_stream_xep_0030.py b/tests/test_stream_xep_0030.py
index d1ad9087..8cba8280 100644
--- a/tests/test_stream_xep_0030.py
+++ b/tests/test_stream_xep_0030.py
@@ -1,5 +1,5 @@
+import asyncio
import time
-import threading
import unittest
from slixmpp.test import SlixTest
@@ -288,7 +288,9 @@ class TestStreamDisco(SlixTest):
self.xmpp.add_event_handler('disco_info', handle_disco_info)
- self.xmpp['xep_0030'].get_info('user@localhost', 'foo')
+
+ self.xmpp.wrap(self.xmpp['xep_0030'].get_info('user@localhost', 'foo'))
+ self.wait_()
self.send("""
<iq type="get" to="user@localhost" id="1">
@@ -483,7 +485,8 @@ class TestStreamDisco(SlixTest):
self.xmpp.add_event_handler('disco_items', handle_disco_items)
- self.xmpp['xep_0030'].get_items('user@localhost', 'foo')
+ self.xmpp.wrap(self.xmpp['xep_0030'].get_items('user@localhost', 'foo'))
+ self.wait_()
self.send("""
<iq type="get" to="user@localhost" id="1">