Skip to content

Commit 3c5683d

Browse files
committed
Refactor existing test
1 parent 7063c17 commit 3c5683d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/worker/test_workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4367,7 +4367,7 @@ async def test_workflow_update_before_worker_start(
43674367
)
43684368

43694369
# Confirm update not there
4370-
assert not await workflow_update_exists(client, handle.id, "my-update")
4370+
assert not await update_admitted(client, handle.id, "my-update")
43714371

43724372
# Execute update in background
43734373
update_task = asyncio.create_task(
@@ -4378,7 +4378,7 @@ async def test_workflow_update_before_worker_start(
43784378

43794379
# Wait until update exists
43804380
await assert_eq_eventually(
4381-
True, lambda: workflow_update_exists(client, handle.id, "my-update")
4381+
True, lambda: update_admitted(client, handle.id, "my-update")
43824382
)
43834383

43844384
# Start no-cache worker on the task queue

0 commit comments

Comments
 (0)