summaryrefslogtreecommitdiff
path: root/internal/api/client/auth/auth_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-11-13 17:30:01 +0100
committerLibravatar GitHub <noreply@github.com>2021-11-13 17:30:01 +0100
commitaee1932bd45aacf4790e1e3a307c01249558c99e (patch)
tree5555ff46a7c7f0ea69fd2168d26476238a560433 /internal/api/client/auth/auth_test.go
parentmove to ssb gofed fork (#298) (diff)
downloadgotosocial-aee1932bd45aacf4790e1e3a307c01249558c99e.tar.xz
First db migration (#297)
* store first db schema * md linting *screams*
Diffstat (limited to 'internal/api/client/auth/auth_test.go')
-rw-r--r--internal/api/client/auth/auth_test.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/internal/api/client/auth/auth_test.go b/internal/api/client/auth/auth_test.go
index 59a8d7b16..ca606e8f2 100644
--- a/internal/api/client/auth/auth_test.go
+++ b/internal/api/client/auth/auth_test.go
@@ -109,21 +109,6 @@ func (suite *AuthTestSuite) SetupTest() {
}
suite.db = db
-
- models := []interface{}{
- &gtsmodel.Client{},
- &gtsmodel.Token{},
- &gtsmodel.User{},
- &gtsmodel.Account{},
- &gtsmodel.Application{},
- }
-
- for _, m := range models {
- if err := suite.db.CreateTable(context.Background(), m); err != nil {
- logrus.Panicf("db connection error: %s", err)
- }
- }
-
suite.oauthServer = oauth.New(context.Background(), suite.db)
if err := suite.db.Put(context.Background(), suite.testAccount); err != nil {