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!
This commit is contained in:
Lance Stout 2011-05-20 21:38:10 -04:00
parent 4bb226147a
commit 7152d93dd0

View file

@ -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')