Skip to content

Commit

Permalink
re-added missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Oct 18, 2024
1 parent ff4d689 commit 31290ba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/integration/run_modes/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,3 +460,15 @@ async def test_settings_broadcast(
assert itask.try_timers['execution-retry'].delays == [2.0, 2.0, 2.0]
# n.b. rtconfig should remain unchanged, lest we cancel broadcasts:
assert itask.tdef.rtconfig['execution retry delays'] == [5.0, 5.0]


async def test_db_submit_num(
flow, one_conf, scheduler, run, complete, db_select
):
"""Test simulation mode correctly increments the submit_num in the DB."""
schd = scheduler(flow(one_conf), paused_start=False)
async with run(schd):
await complete(schd, '1/one')
assert db_select(schd, False, 'task_states', 'submit_num', 'status') == [
(1, 'succeeded'),
]

0 comments on commit 31290ba

Please sign in to comment.