Skip to content

Commit

Permalink
tests: Fix intemittent multithreaded unit test failure (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
oakbani authored and aliabbasrizvi committed Sep 20, 2019
1 parent 547a13c commit 239b687
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 239b687

Please sign in to comment.