diff --git a/internal/store/sqlite/packs_repo_test.go b/internal/store/sqlite/packs_repo_test.go index d4a76081..6aa48264 100644 --- a/internal/store/sqlite/packs_repo_test.go +++ b/internal/store/sqlite/packs_repo_test.go @@ -205,7 +205,8 @@ func TestPacksRepoUpsertReturnsExecError(t *testing.T) { return nil, errors.New("unexpected query") }, queryRowFn: func(context.Context, string, ...any) *sql.Row { - panic("unexpected QueryRowContext") + t.Fatal("unexpected QueryRowContext call") + return nil }, }) diff --git a/internal/store/sqlite/providers_repo_test.go b/internal/store/sqlite/providers_repo_test.go index c2603abf..0880e0e3 100644 --- a/internal/store/sqlite/providers_repo_test.go +++ b/internal/store/sqlite/providers_repo_test.go @@ -313,7 +313,8 @@ func TestProvidersRepoUpsertReturnsExecError(t *testing.T) { return nil, errors.New("unexpected query") }, queryRowFn: func(context.Context, string, ...any) *sql.Row { - panic("unexpected QueryRowContext") + t.Fatal("unexpected QueryRowContext call") + return nil }, })