diff --git a/internal/api/model_handler_test.go b/internal/api/model_handler_test.go index 726269c..0c96c57 100644 --- a/internal/api/model_handler_test.go +++ b/internal/api/model_handler_test.go @@ -202,7 +202,7 @@ func TestBatchModels_Delete(t *testing.T) { } func TestBatchBindings_Status(t *testing.T) { - h, db := newTestHandler(t) + h, db, _ := newTestHandlerWithRedis(t) group := model.ProviderGroup{Name: "default", Type: "openai", BaseURL: "https://api.openai.com/v1", Models: "m1", Status: "active"} if err := db.Create(&group).Error; err != nil { diff --git a/internal/model/models.go b/internal/model/models.go index f94bceb..a4889fa 100644 --- a/internal/model/models.go +++ b/internal/model/models.go @@ -1,6 +1,10 @@ package model -import "gorm.io/gorm" +import ( + "time" + + "gorm.io/gorm" +) // Admin is not a database model. It's configured via environment variables. diff --git a/internal/service/sync_bindings_spec_test.go b/internal/service/sync_bindings_spec_test.go index d70fcbc..6d528ea 100644 --- a/internal/service/sync_bindings_spec_test.go +++ b/internal/service/sync_bindings_spec_test.go @@ -2,7 +2,6 @@ package service import ( "encoding/json" - "strconv" "testing" "github.com/alicebob/miniredis/v2" @@ -139,7 +138,3 @@ func TestSyncBindings_SelectorRegexAndNormalize(t *testing.T) { t.Fatalf("expected config_error with no upstreams, got %+v", snapNorm.Candidates[0]) } } - -func jsonID(id uint) string { - return strconv.FormatUint(uint64(id), 10) -}