From c24ddf5fbbebf913403681938ca932e87b8ad8b3 Mon Sep 17 00:00:00 2001 From: Martin Mitrevski Date: Tue, 24 Nov 2026 17:47:11 +0100 Subject: [PATCH] test(api): limits suite writes requests through insertRequest #2372 added SelfHostedLimitsSuite.spent, which called Requests.Insert, and #2377 removed Requests.Insert and moved every other test to insertRequest. Both merged, so internal/api's integration tests no longer build on main. Co-Authored-By: Claude Opus 5.5 --- acceleration/internal/api/limits_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acceleration/internal/api/limits_test.go b/acceleration/internal/api/limits_test.go index c942b7da8f..d553797e54 100644 --- a/acceleration/internal/api/limits_test.go +++ b/acceleration/internal/api/limits_test.go @@ -648,7 +648,7 @@ func (s *SelfHostedLimitsSuite) backend(app, organization string) *testClient { // spent records a billable request of app's, costing micros, now. func (s *SelfHostedLimitsSuite) spent(app string, micros int64) { - s.Require().NoError(s.store.Requests.Insert(context.Background(), &store.Request{ + s.Require().NoError(insertRequest(context.Background(), s.store, &store.Request{ Modality: "llm", CustomerID: app, APIKey: "key_a", Provider: "stub", Model: "stub-llm", StartedAt: time.Now(), CostMicros: micros, Billable: true, Success: true, }))