Skip to content

Commit 742999e

Browse files
committed
Issue #825: attempt to lower the flakiness of test_start_job_thread_basic
1 parent 7d11a4e commit 742999e

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
@@ -284,7 +284,8 @@ def test_start_job_thread_basic(self, tmp_path, job_manager, job_manager_root_di
284284

285285
job_manager.start_job_thread(start_job=self._create_year_job, job_db=job_db)
286286
# Trigger context switch to job thread
287-
sleep(1)
287+
# TODO: better way than sleeping to make sure the job thread does all its work?
288+
sleep(2)
288289
job_manager.stop_job_thread()
289290
# TODO #645 how to collect stats with the threaded run_job?
290291
assert sleep_mock.call_count > 10

0 commit comments

Comments
 (0)