[chore] fix testrig build (#4059)

This commit is contained in:
tobi
2025-04-26 15:24:15 +02:00
committed by GitHub
parent f7323c065a
commit 85eb192669
2 changed files with 1 additions and 3 deletions

View File

@@ -35,7 +35,6 @@ import (
apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util"
"github.com/superseriousbusiness/gotosocial/internal/cleaner" "github.com/superseriousbusiness/gotosocial/internal/cleaner"
"github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/filter/visibility"
"github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtserror"
"github.com/superseriousbusiness/gotosocial/internal/language" "github.com/superseriousbusiness/gotosocial/internal/language"
"github.com/superseriousbusiness/gotosocial/internal/log" "github.com/superseriousbusiness/gotosocial/internal/log"
@@ -154,7 +153,6 @@ var Start action.GTSAction = func(ctx context.Context) error {
emailSender := testrig.NewEmailSender("./web/template/", nil) emailSender := testrig.NewEmailSender("./web/template/", nil)
webPushSender := testrig.NewWebPushMockSender() webPushSender := testrig.NewWebPushMockSender()
typeConverter := typeutils.NewConverter(state) typeConverter := typeutils.NewConverter(state)
filter := visibility.NewFilter(state)
processor := testrig.NewTestProcessor(state, federator, emailSender, webPushSender, mediaManager) processor := testrig.NewTestProcessor(state, federator, emailSender, webPushSender, mediaManager)

View File

@@ -18,13 +18,13 @@
package lists_test package lists_test
import ( import (
"bytes"
"context" "context"
"fmt" "fmt"
"io" "io"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"bytes"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/superseriousbusiness/gotosocial/internal/api/client/lists" "github.com/superseriousbusiness/gotosocial/internal/api/client/lists"