Skip to content

Commit d6ef7ee

Browse files
committed
Merge branch 'master' into issue741-break-up-job-management
2 parents 7ae917b + 742999e commit d6ef7ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/extra/job_management/test_job_management.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def test_start_job_thread_basic(self, tmp_path, job_manager, job_manager_root_di
275275

276276
job_manager.start_job_thread(start_job=self._create_year_job, job_db=job_db)
277277
# Trigger context switch to job thread
278-
sleep(1)
278+
# TODO: better way than sleeping to make sure the job thread does all its work?
279+
sleep(2)
279280
job_manager.stop_job_thread()
280281
# TODO #645 how to collect stats with the threaded run_job?
281282
assert sleep_mock.call_count > 10

0 commit comments

Comments
 (0)