Skip to content

Commit

Permalink
fix one more test.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKraus committed Jul 21, 2024
1 parent 3e81920 commit 5bfd15f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_03_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@ def test_recover_crashed_jobs(datadir, start_tomato_daemon, stop_tomato_daemon):
wait_until_ketchup_status(jobid=1, status="r", port=PORT, timeout=WAIT)
ret = tomato.status(**kwargs, with_data=True)
print(f"{ret=}")
pid = ret.data.jobs[1].pid

ret = tomato.stop(**kwargs)
kill_tomato_daemon(port=PORT)

proc = psutil.Process(pid=ret.data.jobs[1].pid)
proc = psutil.Process(pid=pid)
proc.terminate()
psutil.wait_procs([proc], timeout=3)

Expand Down

0 comments on commit 5bfd15f

Please sign in to comment.