diff --git a/internal/stage/retry_safety_test.go b/internal/stage/retry_safety_test.go index 5068ae06..54a6a576 100644 --- a/internal/stage/retry_safety_test.go +++ b/internal/stage/retry_safety_test.go @@ -45,7 +45,10 @@ func TestReadOnlyAgentRetriesPostAdmissionDeadline(t *testing.T) { def := turnDefinition(t) def.Blocks["tools"] = "read" def.Configs["retries"] = "1" - def.Configs["timeout"] = "30ms" + // The first prompt waits on ctx.Done, so a longer allowance does not weaken + // the deadline assertion. It leaves the successful retry time to finish on + // hosts concurrently compiling/running the integration suites. + def.Configs["timeout"] = "500ms" var sessions, prompts atomic.Int64 agent := &AgentClient{OpenCodeClient: OpenCodeClient{command: func(ctx context.Context, _ string, args ...string) ([]byte, error) { path := args[2]