Skip to content

Commit 314b0f3

Browse files
committed
Don't be paranoid
1 parent ef5aaf2 commit 314b0f3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/nexus/test_workflow_caller_cancellation_types.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import asyncio
2-
import time
32
import uuid
43
from dataclasses import dataclass, field
54
from datetime import datetime, timezone
@@ -191,10 +190,6 @@ async def run(self, input: Input) -> CancellationResult:
191190
datetime.now(timezone.utc)
192191
)
193192
assert op_handle.operation_token
194-
# Block the thread for a bit to avoid flakiness in asserting that the future is
195-
# unblocked before the WFT completion is sent in the TryCancel case.
196-
time.sleep(0.01)
197-
198193
if (
199194
input.cancellation_type
200195
== workflow.NexusOperationCancellationType.WAIT_REQUESTED

0 commit comments

Comments
 (0)