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
@ -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 New Issue
Block a user