summaryrefslogtreecommitdiff
path: root/testrig
diff options
context:
space:
mode:
Diffstat (limited to 'testrig')
-rw-r--r--testrig/federatingdb.go2
-rw-r--r--testrig/transportcontroller.go3
2 files changed, 2 insertions, 3 deletions
diff --git a/testrig/federatingdb.go b/testrig/federatingdb.go
index 28c6bd7b4..360f99db6 100644
--- a/testrig/federatingdb.go
+++ b/testrig/federatingdb.go
@@ -27,7 +27,7 @@ import (
)
// NewTestFederatingDB returns a federating DB with the underlying db
-func NewTestFederatingDB(state *state.State) federatingdb.DB {
+func NewTestFederatingDB(state *state.State) *federatingdb.DB {
return federatingdb.New(
state,
typeutils.NewConverter(state),
diff --git a/testrig/transportcontroller.go b/testrig/transportcontroller.go
index 34ed35255..641232b73 100644
--- a/testrig/transportcontroller.go
+++ b/testrig/transportcontroller.go
@@ -31,7 +31,6 @@ import (
"code.superseriousbusiness.org/activity/streams/vocab"
"code.superseriousbusiness.org/gotosocial/internal/ap"
apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model"
- "code.superseriousbusiness.org/gotosocial/internal/federation"
"code.superseriousbusiness.org/gotosocial/internal/gtsmodel"
"code.superseriousbusiness.org/gotosocial/internal/httpclient"
"code.superseriousbusiness.org/gotosocial/internal/log"
@@ -56,7 +55,7 @@ const (
// PER TEST rather than per suite, so that the do function can be set on a test by test (or even more granular)
// basis.
func NewTestTransportController(state *state.State, client pub.HttpClient) transport.Controller {
- return transport.NewController(state, NewTestFederatingDB(state), &federation.Clock{}, client)
+ return transport.NewController(state, NewTestFederatingDB(state), client)
}
type MockHTTPClient struct {