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 1505e7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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,8 +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):
monkeypatch.chdir(tmpdir)
Expand Down

0 comments on commit 1505e7a

Please sign in to comment.