Skip to content

Commit 239b687

Browse files
oakbanialiabbasrizvi
authored andcommitted
tests: Fix intemittent multithreaded unit test failure (#210)
1 parent 547a13c commit 239b687

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_config_manager.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ def test_fetch_datafile(self, _):
278278

279279
def test_is_running(self, _):
280280
""" Test that polling thread is running after instance of PollingConfigManager is created. """
281-
with mock.patch('optimizely.config_manager.PollingConfigManager.fetch_datafile') as mock_fetch_datafile:
281+
with mock.patch('optimizely.config_manager.PollingConfigManager.fetch_datafile'):
282282
project_config_manager = config_manager.PollingConfigManager(sdk_key='some_key')
283283
self.assertTrue(project_config_manager.is_running)
284-
mock_fetch_datafile.assert_called_with()

0 commit comments

Comments
 (0)