fix(growth): harden AI jobs and cost controls
This commit is contained in:
@@ -20,7 +20,7 @@ func TestCoordinatorFallsBackToBoundedProcessCounters(t *testing.T) {
|
||||
if err := coordinator.AllowCreate(context.Background(), 7, now); !errors.Is(err, ErrRateLimited) {
|
||||
t.Fatalf("third request error=%v", err)
|
||||
}
|
||||
if err := coordinator.ReserveBudget(context.Background(), 1600, now); !errors.Is(err, ErrBudgetExhausted) {
|
||||
if err := coordinator.ReserveBudget(context.Background(), MaxProviderRequests, 1600, now); !errors.Is(err, ErrBudgetExhausted) {
|
||||
t.Fatalf("budget without Redis error=%v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user