Skip to content

Commit

Permalink
Fix unit test job queue run_done_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-eq committed Dec 4, 2023
1 parent cee4a0c commit dfa61ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit_tests/job_queue/test_job_queue.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
import json
import os
import re
import stat
import time
from pathlib import Path
Expand Down Expand Up @@ -196,7 +197,7 @@ async def test_run_done_callback(
await asyncio.gather(execute_task)
assert scheduler.count_realization_state(expected_state) == scheduler.queue_size
for realstate in scheduler._realizations:
assert realstate._callback_status_msg == "foo"
assert re.search("foo", realstate._callback_status_msg)


def test_add_dispatch_info(tmpdir, monkeypatch, simple_script):
Expand Down

0 comments on commit dfa61ff

Please sign in to comment.