ci: faster unit_tests (#33962)

faster
pull/33967/head
Maxime Desroches 10 months ago committed by GitHub
parent a342cef545
commit e0acd86ca1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      system/loggerd/tests/test_uploader.py

@ -73,7 +73,7 @@ class TestUploader(UploaderTestCase):
self.start_thread()
# allow enough time that files could upload twice if there is a bug in the logic
time.sleep(5)
time.sleep(2)
self.join_thread()
exp_order = self.gen_order([self.seg_num], [])
@ -91,7 +91,7 @@ class TestUploader(UploaderTestCase):
self.start_thread()
# allow enough time that files could upload twice if there is a bug in the logic
time.sleep(5)
time.sleep(2)
self.join_thread()
exp_order = self.gen_order([self.seg_num], [])
@ -110,7 +110,7 @@ class TestUploader(UploaderTestCase):
self.start_thread()
# allow enough time that files could upload twice if there is a bug in the logic
time.sleep(5)
time.sleep(2)
self.join_thread()
exp_order = self.gen_order([self.seg_num], [])
@ -137,7 +137,7 @@ class TestUploader(UploaderTestCase):
self.start_thread()
# allow enough time that files could upload twice if there is a bug in the logic
time.sleep(5)
time.sleep(2)
self.join_thread()
assert len(log_handler.upload_ignored) == 0, "Some files were ignored"
@ -155,7 +155,7 @@ class TestUploader(UploaderTestCase):
f_paths = self.gen_files(lock=True, boot=False)
# allow enough time that files should have been uploaded if they would be uploaded
time.sleep(5)
time.sleep(2)
self.join_thread()
for f_path in f_paths:
@ -168,7 +168,7 @@ class TestUploader(UploaderTestCase):
self.start_thread()
# allow enough time that files could upload twice if there is a bug in the logic
time.sleep(5)
time.sleep(2)
self.join_thread()
assert len(log_handler.upload_order) == 0, "File uploaded again"

Loading…
Cancel
Save