Skip to content

Commit 7e36940

Browse files
authored
Increase execution_timeout for OpenAI tests that call the real API (#1466)
test_hello_world_agent[False] had a 5s execution timeout and test_input_guardrail[False] had a 10s timeout, but both use a 30s activity start_to_close_timeout. The workflow times out before the OpenAI API call can complete on slower CI runners. Bump both to 60s.
1 parent 0ada3b4 commit 7e36940

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/contrib/openai_agents/test_openai.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async def test_hello_world_agent(client: Client, use_local_model: bool):
141141
"Tell me about recursion in programming.",
142142
id=f"hello-workflow-{uuid.uuid4()}",
143143
task_queue=worker.task_queue,
144-
execution_timeout=timedelta(seconds=5),
144+
execution_timeout=timedelta(seconds=60),
145145
)
146146
if use_local_model:
147147
assert result == "test"
@@ -1243,7 +1243,7 @@ async def test_input_guardrail(client: Client, use_local_model: bool):
12431243
],
12441244
id=f"input-guardrail-{uuid.uuid4()}",
12451245
task_queue=worker.task_queue,
1246-
execution_timeout=timedelta(seconds=10),
1246+
execution_timeout=timedelta(seconds=60),
12471247
)
12481248
result = await workflow_handle.result()
12491249

0 commit comments

Comments
 (0)