Skip to content

Commit 2fc98c4

Browse files
committed
Fix tests
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent ce0f977 commit 2fc98c4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/test_frequenz_dispatch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,13 @@ async def test_dispatch_new_but_finished(
473473
new_dispatch,
474474
active=True,
475475
duration=timedelta(seconds=10),
476-
start_time=_now() + timedelta(seconds=5),
476+
start_time=_now() + timedelta(seconds=500),
477477
recurrence=RecurrenceRule(),
478478
type="TEST_TYPE",
479479
)
480480

481481
new_dispatch = await _test_new_dispatch_created(test_env, new_dispatch)
482+
assert new_dispatch.started is False
482483

483484
# Advance time to when the new dispatch should still not start
484485
fake_time.shift(timedelta(seconds=100))

tests/test_mananging_actor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ def __init__(self, *, server_url: str, key: str):
287287
sender = channel.new_sender()
288288

289289
async def new_mock_receiver(
290-
_: Dispatcher, dispatch_type: str, *, merge_strategy: MergeStrategy | None
290+
_: Dispatcher,
291+
dispatch_type: str,
292+
*,
293+
merge_strategy: MergeStrategy | None,
291294
) -> Receiver[Dispatch]:
292295
assert dispatch_type == "MANAGE_TEST"
293296
assert merge_strategy is strategy

0 commit comments

Comments
 (0)