From 239b687058156219b6838e14cc7572ef088f9638 Mon Sep 17 00:00:00 2001 From: Owais Akbani Date: Fri, 20 Sep 2019 10:39:24 +0500 Subject: [PATCH] tests: Fix intemittent multithreaded unit test failure (#210) --- tests/test_config_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_config_manager.py b/tests/test_config_manager.py index a607009d..040ba7b3 100644 --- a/tests/test_config_manager.py +++ b/tests/test_config_manager.py @@ -278,7 +278,6 @@ def test_fetch_datafile(self, _): def test_is_running(self, _): """ Test that polling thread is running after instance of PollingConfigManager is created. """ - with mock.patch('optimizely.config_manager.PollingConfigManager.fetch_datafile') as mock_fetch_datafile: + with mock.patch('optimizely.config_manager.PollingConfigManager.fetch_datafile'): project_config_manager = config_manager.PollingConfigManager(sdk_key='some_key') self.assertTrue(project_config_manager.is_running) - mock_fetch_datafile.assert_called_with()