Skip to content

Commit

Permalink
fixup! Update tests/jobs/test_local_task_job.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ephraimbuddy committed Apr 23, 2021
1 parent b9ccd0c commit ed39194
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/jobs/test_local_task_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#
import multiprocessing
import os
import signal
import time
import unittest
import uuid
Expand Down Expand Up @@ -552,7 +553,7 @@ def task_function(ti):
break
time.sleep(0.2)
assert ti.state == State.RUNNING
os.kill(ti.pid, 15)
os.kill(ti.pid, signal.SIGTERM)
process.join(timeout=10)
assert failure_callback_called.value == 1
assert task_terminated_externally.value == 1
Expand Down

0 comments on commit ed39194

Please sign in to comment.