Skip to content

Commit cb824d8

Browse files
committed
Adding timeout to dts orchestration e2e test
Signed-off-by: Ryan Lettieri <[email protected]>
1 parent 7337186 commit cb824d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/durabletask-azuremanaged/test_dts_orchestration_e2e.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,12 @@ def orchestrator(ctx: task.OrchestrationContext, _):
254254

255255
# Suspend the orchestration and wait for it to go into the SUSPENDED state
256256
task_hub_client.suspend_orchestration(id)
257-
while state.runtime_status == client.OrchestrationStatus.RUNNING:
257+
counter = 0
258+
while state.runtime_status == client.OrchestrationStatus.RUNNING and counter < 1200:
258259
time.sleep(0.1)
259260
state = task_hub_client.get_orchestration_state(id)
260261
assert state is not None
262+
counter+=1
261263
assert state.runtime_status == client.OrchestrationStatus.SUSPENDED
262264

263265
# Raise an event to the orchestration and confirm that it does NOT complete

0 commit comments

Comments
 (0)