mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
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:
parent
4bb226147a
commit
7152d93dd0
1 changed files with 3 additions and 0 deletions
|
@ -104,6 +104,9 @@ class TestHandlers(SleekTest):
|
||||||
iq['query'] = 'test2'
|
iq['query'] = 'test2'
|
||||||
self.send(iq)
|
self.send(iq)
|
||||||
|
|
||||||
|
# Give the event queue time to process.
|
||||||
|
time.sleep(0.1)
|
||||||
|
|
||||||
# Check that the waiter is no longer registered
|
# Check that the waiter is no longer registered
|
||||||
waiter_exists = self.xmpp.removeHandler('IqWait_test2')
|
waiter_exists = self.xmpp.removeHandler('IqWait_test2')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue