diff --git a/internal/stage/budget_test.go b/internal/stage/budget_test.go index 581c8066..dee7cb51 100644 --- a/internal/stage/budget_test.go +++ b/internal/stage/budget_test.go @@ -54,7 +54,9 @@ func TestDefaultRetriesAndTimeoutResetEachAttempt(t *testing.T) { if _, err := (ModelStage{Client: client}).Run(context.Background(), def, nil); err == nil || calls != 3 { t.Fatal("default retry count wrong", calls, err) } - def.Configs["timeout"] = "20ms" + // Leave enough headroom that the successful retry is not itself racing the + // deadline when the full suite runs in parallel. + def.Configs["timeout"] = "250ms" calls = 0 client = generatorFunc(func(ctx context.Context, _ ModelConfig, _ string) (string, error) { calls++