mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 23:27:49 +01:00
add sleep to bailout error test (#1241)
Hopefully it won;t hit the race condition so often on appveyor
This commit is contained in:
parent
1d715f0d36
commit
0bbca65a95
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ class TestUpdater(object):
|
||||||
updater.start_polling(0.01)
|
updater.start_polling(0.01)
|
||||||
assert self.err_handler_called.wait(1) is not True
|
assert self.err_handler_called.wait(1) is not True
|
||||||
|
|
||||||
# NOTE: This test might hit a race condition and fail (though the 0.5 seconds delay above
|
sleep(1)
|
||||||
|
# NOTE: This test might hit a race condition and fail (though the 1 seconds delay above
|
||||||
# should work around it).
|
# should work around it).
|
||||||
# NOTE: Checking Updater.running is problematic because it is not set to False when there's
|
# NOTE: Checking Updater.running is problematic because it is not set to False when there's
|
||||||
# an unhandled exception.
|
# an unhandled exception.
|
||||||
|
|
Loading…
Reference in a new issue