add sleep to bailout error test (#1241)

Hopefully it won;t hit the race condition so often on appveyor
This commit is contained in:
Eldinnie 2018-10-02 09:00:38 +02:00 committed by GitHub
parent 1d715f0d36
commit 0bbca65a95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,8 @@ class TestUpdater(object):
updater.start_polling(0.01)
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).
# NOTE: Checking Updater.running is problematic because it is not set to False when there's
# an unhandled exception.