mirror of
https://github.com/django/django.git
synced 2025-03-12 02:12:38 +00:00
Fixed #32913 -- Made watchman reloader tests less flaky.
This commit is contained in:
parent
3cfcb8cbc8
commit
6b513f0137
@ -684,7 +684,7 @@ class WatchmanReloaderTests(ReloaderTests, IntegrationTests):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
super().setUp()
|
super().setUp()
|
||||||
# Shorten the timeout to speed up tests.
|
# 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):
|
def test_watch_glob_ignores_non_existing_directories_two_levels(self):
|
||||||
with mock.patch.object(self.reloader, '_subscribe') as mocked_subscribe:
|
with mock.patch.object(self.reloader, '_subscribe') as mocked_subscribe:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user