From 0bbca65a9525b63fa55baa6e6c121e7eed6d8ae7 Mon Sep 17 00:00:00 2001 From: Eldinnie Date: Tue, 2 Oct 2018 09:00:38 +0200 Subject: [PATCH] add sleep to bailout error test (#1241) Hopefully it won;t hit the race condition so often on appveyor --- tests/test_updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_updater.py b/tests/test_updater.py index 829e3c7f9..b8414cba6 100644 --- a/tests/test_updater.py +++ b/tests/test_updater.py @@ -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.