summaryrefslogtreecommitdiff
path: root/tests/test_stream_roster.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-06-29 22:33:00 -0700
committerLance Stout <lancestout@gmail.com>2013-06-29 22:33:00 -0700
commitcedc9dd175afba02e7beba21dc9eb4de1e63623d (patch)
treef3a88ae757f9312adc265f8b4da83e641c132259 /tests/test_stream_roster.py
parent669e708b70beb4d924caf552bf75640762248686 (diff)
downloadslixmpp-cedc9dd175afba02e7beba21dc9eb4de1e63623d.tar.gz
slixmpp-cedc9dd175afba02e7beba21dc9eb4de1e63623d.tar.bz2
slixmpp-cedc9dd175afba02e7beba21dc9eb4de1e63623d.tar.xz
slixmpp-cedc9dd175afba02e7beba21dc9eb4de1e63623d.zip
Adjust get_roster to always return, even with invalid JIDs
Issue #245
Diffstat (limited to 'tests/test_stream_roster.py')
-rw-r--r--tests/test_stream_roster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_stream_roster.py b/tests/test_stream_roster.py
index 3d1447a3..fa87105e 100644
--- a/tests/test_stream_roster.py
+++ b/tests/test_stream_roster.py
@@ -49,6 +49,9 @@ class TestStreamRoster(SleekTest):
# Wait for get_roster to return.
t.join()
+ # Give the event queue time to process.
+ time.sleep(.1)
+
self.check_roster('tester@localhost', 'user@localhost',
name='User',
subscription='from',
@@ -56,9 +59,6 @@ class TestStreamRoster(SleekTest):
pending_out=True,
groups=['Friends', 'Examples'])
- # Give the event queue time to process.
- time.sleep(.1)
-
self.failUnless(len(roster_updates) == 1,
"Wrong number of roster_update events fired: %s (should be 1)" % len(roster_updates))