@@ -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 ._impression_listener , ImpressionListenerWrapper )
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
@@ -182,7 +180,6 @@ def test_uwsgi_client_creation(self):
182180 assert factory ._labels_enabled is True
183181 assert factory ._impression_listener is None
184182 factory .block_until_ready ()
185- time .sleep (1 ) # give a chance for the bg thread to set the ready status
186183 assert factory .ready
187184 factory .destroy ()
188185
@@ -233,7 +230,6 @@ def _event_task_init_mock(self, api, storage, refresh_rate, bulk_size):
233230 # Start factory and make assertions
234231 factory = get_factory ('some_api_key' )
235232 factory .block_until_ready ()
236- time .sleep (1 ) # give a chance for the bg thread to set the ready status
237233 assert factory .ready
238234 assert factory .destroyed is False
239235
@@ -303,7 +299,6 @@ def _telemetry_task_init_mock(self, api, storage, refresh_rate):
303299 assert factory .destroyed is False
304300
305301 factory .block_until_ready ()
306- time .sleep (1 ) # give a chance for the bg thread to set the ready status
307302 assert factory .ready
308303
309304 event = threading .Event ()
0 commit comments