Skip to content

Commit

Permalink
less
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Nov 13, 2024
1 parent def2a73 commit bcec5d1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions system/loggerd/tests/test_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_upload(self):

self.start_thread()
# allow enough time that files could upload twice if there is a bug in the logic
time.sleep(2)
time.sleep(1)
self.join_thread()

exp_order = self.gen_order([self.seg_num], [])
Expand All @@ -91,7 +91,7 @@ def test_upload_with_wrong_xattr(self):

self.start_thread()
# allow enough time that files could upload twice if there is a bug in the logic
time.sleep(2)
time.sleep(1)
self.join_thread()

exp_order = self.gen_order([self.seg_num], [])
Expand All @@ -110,7 +110,7 @@ def test_upload_ignored(self):

self.start_thread()
# allow enough time that files could upload twice if there is a bug in the logic
time.sleep(2)
time.sleep(1)
self.join_thread()

exp_order = self.gen_order([self.seg_num], [])
Expand All @@ -137,7 +137,7 @@ def test_upload_files_in_create_order(self):

self.start_thread()
# allow enough time that files could upload twice if there is a bug in the logic
time.sleep(2)
time.sleep(1)
self.join_thread()

assert len(log_handler.upload_ignored) == 0, "Some files were ignored"
Expand All @@ -155,7 +155,7 @@ def test_no_upload_with_lock_file(self):
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(2)
time.sleep(1)
self.join_thread()

for f_path in f_paths:
Expand All @@ -168,15 +168,15 @@ def test_no_upload_with_xattr(self):

self.start_thread()
# allow enough time that files could upload twice if there is a bug in the logic
time.sleep(2)
time.sleep(1)
self.join_thread()

assert len(log_handler.upload_order) == 0, "File uploaded again"

def test_clear_locks_on_startup(self):
f_paths = self.gen_files(lock=True, boot=False)
self.start_thread()
time.sleep(1)
time.sleep(0.25)
self.join_thread()

for f_path in f_paths:
Expand Down

0 comments on commit bcec5d1

Please sign in to comment.