diff options
author | Lance Stout <lancestout@gmail.com> | 2011-05-20 21:38:10 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-05-20 21:38:43 -0400 |
commit | 7152d93dd05346fdb7dbe1893bff6395f83a79a9 (patch) | |
tree | 2aca06ebcc5e7b1e1664e774ddcae3d824790abb | |
parent | 4bb226147a0faa3b0c92934f64585357bb197f68 (diff) | |
download | slixmpp-7152d93dd05346fdb7dbe1893bff6395f83a79a9.tar.gz slixmpp-7152d93dd05346fdb7dbe1893bff6395f83a79a9.tar.bz2 slixmpp-7152d93dd05346fdb7dbe1893bff6395f83a79a9.tar.xz slixmpp-7152d93dd05346fdb7dbe1893bff6395f83a79a9.zip |
Fix test timeout issue.
A better method than using time.sleep is needed.
Maybe use queue.task_done to detect when event processing
has ended? Research time!
-rw-r--r-- | tests/test_stream_handlers.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_stream_handlers.py b/tests/test_stream_handlers.py index a475b36c..dae4456d 100644 --- a/tests/test_stream_handlers.py +++ b/tests/test_stream_handlers.py @@ -104,6 +104,9 @@ class TestHandlers(SleekTest): iq['query'] = 'test2' self.send(iq) + # Give the event queue time to process. + time.sleep(0.1) + # Check that the waiter is no longer registered waiter_exists = self.xmpp.removeHandler('IqWait_test2') |