summaryrefslogtreecommitdiff
path: root/internal/db/bundb/session_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-09-04 13:29:56 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-04 13:29:56 +0200
commitff05046df7c0ce21f70b0dd8dce59dd5e01771de (patch)
tree227720dc9ca30da106e508108eba08426e8bd2ee /internal/db/bundb/session_test.go
parentMerge pull request #186 from superseriousbusiness/struct_validation (diff)
downloadgotosocial-ff05046df7c0ce21f70b0dd8dce59dd5e01771de.tar.xz
tests + announce notification fix (#193)
Diffstat (limited to 'internal/db/bundb/session_test.go')
-rw-r--r--internal/db/bundb/session_test.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/internal/db/bundb/session_test.go b/internal/db/bundb/session_test.go
index 0334fae7b..b2a062b19 100644
--- a/internal/db/bundb/session_test.go
+++ b/internal/db/bundb/session_test.go
@@ -23,37 +23,12 @@ import (
"testing"
"github.com/stretchr/testify/suite"
- "github.com/superseriousbusiness/gotosocial/testrig"
)
type SessionTestSuite struct {
BunDBStandardTestSuite
}
-func (suite *SessionTestSuite) SetupSuite() {
- suite.testTokens = testrig.NewTestTokens()
- suite.testClients = testrig.NewTestClients()
- suite.testApplications = testrig.NewTestApplications()
- suite.testUsers = testrig.NewTestUsers()
- suite.testAccounts = testrig.NewTestAccounts()
- suite.testAttachments = testrig.NewTestAttachments()
- suite.testStatuses = testrig.NewTestStatuses()
- suite.testTags = testrig.NewTestTags()
- suite.testMentions = testrig.NewTestMentions()
-}
-
-func (suite *SessionTestSuite) SetupTest() {
- suite.config = testrig.NewTestConfig()
- suite.db = testrig.NewTestDB()
- suite.log = testrig.NewTestLog()
-
- testrig.StandardDBSetup(suite.db, suite.testAccounts)
-}
-
-func (suite *SessionTestSuite) TearDownTest() {
- testrig.StandardDBTeardown(suite.db)
-}
-
func (suite *SessionTestSuite) TestGetSession() {
session, err := suite.db.GetSession(context.Background())
suite.NoError(err)