summaryrefslogtreecommitdiff
path: root/internal/api/auth/auth_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/auth/auth_test.go')
-rw-r--r--internal/api/auth/auth_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/api/auth/auth_test.go b/internal/api/auth/auth_test.go
index a8d029795..ddf75970e 100644
--- a/internal/api/auth/auth_test.go
+++ b/internal/api/auth/auth_test.go
@@ -91,11 +91,14 @@ func (suite *AuthStandardTestSuite) SetupTest() {
suite.emailSender = testrig.NewEmailSender("../../../web/template/", nil)
suite.processor = testrig.NewTestProcessor(&suite.state, suite.federator, suite.emailSender, suite.mediaManager)
suite.authModule = auth.New(suite.db, suite.processor, suite.idp)
+
testrig.StandardDBSetup(suite.db, suite.testAccounts)
+ testrig.StartWorkers(&suite.state)
}
func (suite *AuthStandardTestSuite) TearDownTest() {
testrig.StandardDBTeardown(suite.db)
+ testrig.StopWorkers(&suite.state)
}
func (suite *AuthStandardTestSuite) newContext(requestMethod string, requestPath string, requestBody []byte, bodyContentType string) (*gin.Context, *httptest.ResponseRecorder) {