Skip to content

Commit

Permalink
Increase sleep time to see if that makes jobs complete on gha
Browse files Browse the repository at this point in the history
  • Loading branch information
glormph committed Oct 29, 2024
1 parent 40355e9 commit 2e7f633
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/rawstatus/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_transfer_again(self):
'src_path': os.path.join(settings.TMP_UPLOADPATH, f'{self.f3raw.pk}.{self.f3sf.filetype.filetype}')},
timestamp=timezone.now(), state=jj.Jobstates.DONE)
sp = self.run_script(fullp)
sleep(1)
sleep(2)
self.f3sf.refresh_from_db()
self.assertFalse(self.f3sf.checked)
self.run_job()
Expand Down Expand Up @@ -194,7 +194,7 @@ def test_transfer_same_name(self):
self.assertFalse(os.path.exists(os.path.join(tmpdir, 'skipbox', self.f3sf.filename)))

sp = self.run_script(False, config=os.path.join(tmpdir, 'config.json'), session=True)
sleep(2)
sleep(4)
sp.terminate()
# Properly kill children since upload.py uses multiprocessing
os.killpg(os.getpgid(sp.pid), signal.SIGTERM)
Expand Down Expand Up @@ -230,7 +230,7 @@ def test_transfer_file_namechanged(self):
producer=self.prod, size=123, date=timezone.now(), claimed=False)
lastsf = rm.StoredFile.objects.last()
sp = self.run_script(fullp)
sleep(1)
sleep(2)
self.run_job()
spout, sperr = sp.communicate()
newsf = rm.StoredFile.objects.last()
Expand Down

0 comments on commit 2e7f633

Please sign in to comment.