Skip to content

Commit 9a9f5da

Browse files
committed
fix:test_stop_job_command__success #321
1 parent fbb433b commit 9a9f5da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scheduler/tests/test_worker/test_worker_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ def test_stop_job_command__success(self, mock_stopped_callback):
7575
worker.monitor_job_execution_process(job, queue)
7676

7777
# Assert
78+
t.join()
7879
job = JobModel.get(job.name, connection=queue.connection)
7980
worker = WorkerModel.get(worker.name, connection=queue.connection)
8081
self.assertEqual(worker.stopped_job_name, job.name)
8182
self.assertIsNone(worker.current_job_name)
8283
self.assertEqual(job.status, JobStatus.STOPPED)
83-
t.join()
8484
mock_stopped_callback.assert_called()

0 commit comments

Comments
 (0)