@@ -86,7 +86,6 @@ def _segment_task_init_mock(self, api, storage, split_storage, period, event):
8686 assert factory ._tasks ['telemetry' ]._api == factory ._apis ['telemetry' ]
8787 assert factory ._labels_enabled is True
8888 factory .block_until_ready ()
89- time .sleep (1 ) # give a chance for the bg thread to set the ready status
9089 assert factory .ready
9190 factory .destroy ()
9291
@@ -164,7 +163,6 @@ def test_redis_client_creation(self, mocker):
164163 assert factory ._labels_enabled is False
165164 assert isinstance (factory ._impressions_manager , ImpressionsManager )
166165 factory .block_until_ready ()
167- time .sleep (1 ) # give a chance for the bg thread to set the ready status
168166 assert factory .ready
169167 factory .destroy ()
170168
@@ -181,7 +179,6 @@ def test_uwsgi_client_creation(self):
181179 assert factory ._tasks == {}
182180 assert factory ._labels_enabled is True
183181 factory .block_until_ready ()
184- time .sleep (1 ) # give a chance for the bg thread to set the ready status
185182 assert factory .ready
186183 factory .destroy ()
187184
@@ -232,7 +229,6 @@ def _event_task_init_mock(self, api, storage, refresh_rate, bulk_size):
232229 # Start factory and make assertions
233230 factory = get_factory ('some_api_key' )
234231 factory .block_until_ready ()
235- time .sleep (1 ) # give a chance for the bg thread to set the ready status
236232 assert factory .ready
237233 assert factory .destroyed is False
238234
@@ -302,7 +298,6 @@ def _telemetry_task_init_mock(self, api, storage, refresh_rate):
302298 assert factory .destroyed is False
303299
304300 factory .block_until_ready ()
305- time .sleep (1 ) # give a chance for the bg thread to set the ready status
306301 assert factory .ready
307302
308303 event = threading .Event ()
0 commit comments