summaryrefslogtreecommitdiff
path: root/internal/api/client/accounts/lists_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/accounts/lists_test.go')
-rw-r--r--internal/api/client/accounts/lists_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/api/client/accounts/lists_test.go b/internal/api/client/accounts/lists_test.go
index 6984d6ef8..637babc35 100644
--- a/internal/api/client/accounts/lists_test.go
+++ b/internal/api/client/accounts/lists_test.go
@@ -19,7 +19,6 @@ package accounts_test
import (
"encoding/json"
- "fmt"
"io"
"net/http"
"net/http/httptest"
@@ -63,16 +62,16 @@ func (suite *ListsTestSuite) getLists(targetAccountID string, expectedHTTPStatus
suite.FailNow(err.Error())
}
- errs := gtserror.MultiError{}
+ errs := gtserror.NewMultiError(2)
// Check expected code + body.
if resultCode := recorder.Code; expectedHTTPStatus != resultCode {
- errs = append(errs, fmt.Sprintf("expected %d got %d", expectedHTTPStatus, resultCode))
+ errs.Appendf("expected %d got %d", expectedHTTPStatus, resultCode)
}
// If we got an expected body, return early.
if expectedBody != "" && string(b) != expectedBody {
- errs = append(errs, fmt.Sprintf("expected %s got %s", expectedBody, string(b)))
+ errs.Appendf("expected %s got %s", expectedBody, string(b))
}
if err := errs.Combine(); err != nil {