From 6b513f01374da8e8f38e231f0ff95e8c095d3239 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Fri, 23 Jul 2021 10:40:57 +0100 Subject: [PATCH] Fixed #32913 -- Made watchman reloader tests less flaky. --- tests/utils_tests/test_autoreload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils_tests/test_autoreload.py b/tests/utils_tests/test_autoreload.py index af439d8b188..a5b9ca20a61 100644 --- a/tests/utils_tests/test_autoreload.py +++ b/tests/utils_tests/test_autoreload.py @@ -684,7 +684,7 @@ class WatchmanReloaderTests(ReloaderTests, IntegrationTests): def setUp(self): super().setUp() # Shorten the timeout to speed up tests. - self.reloader.client_timeout = 0.1 + self.reloader.client_timeout = int(os.environ.get('DJANGO_WATCHMAN_TIMEOUT', 2)) def test_watch_glob_ignores_non_existing_directories_two_levels(self): with mock.patch.object(self.reloader, '_subscribe') as mocked_subscribe: