summaryrefslogtreecommitdiff
path: root/testrig/db.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-03-03 16:03:36 +0100
committerLibravatar GitHub <noreply@github.com>2025-03-03 15:03:36 +0000
commit1b37944f8b8eccc2afcfb0f603786209a3b7402d (patch)
tree2bc0be27cf0405e16ac3e14efc3b6973eb096b8b /testrig/db.go
parentbumps go-ffmpreg to v0.6.6 (#3866) (diff)
downloadgotosocial-1b37944f8b8eccc2afcfb0f603786209a3b7402d.tar.xz
[feature] Refactor tokens, allow multiple app redirect_uris (#3849)
* [feature] Refactor tokens, allow multiple app redirect_uris * move + tweak handlers a bit * return error for unset oauth2.ClientStore funcs * wrap UpdateToken with cache * panic handling * cheeky little time optimization * unlock on error
Diffstat (limited to 'testrig/db.go')
-rw-r--r--testrig/db.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/testrig/db.go b/testrig/db.go
index d33a63f12..2f44b3777 100644
--- a/testrig/db.go
+++ b/testrig/db.go
@@ -68,7 +68,6 @@ var testModels = []interface{}{
&gtsmodel.Notification{},
&gtsmodel.RouterSession{},
&gtsmodel.Token{},
- &gtsmodel.Client{},
&gtsmodel.EmojiCategory{},
&gtsmodel.Tombstone{},
&gtsmodel.Report{},
@@ -132,12 +131,6 @@ func StandardDBSetup(db db.DB, accounts map[string]*gtsmodel.Account) {
}
}
- for _, v := range NewTestClients() {
- if err := db.Put(ctx, v); err != nil {
- log.Panic(ctx, err)
- }
- }
-
for _, v := range NewTestApplications() {
if err := db.Put(ctx, v); err != nil {
log.Panic(ctx, err)