summaryrefslogtreecommitdiff
path: root/testrig/db.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-08-11 16:54:54 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-11 16:54:54 +0200
commit329a5e8144eea78e607c8a218ae78ae8f346f2e8 (patch)
tree73072075ad682212d77504d4199ae756f4950a60 /testrig/db.go
parentahhh (diff)
downloadgotosocial-329a5e8144eea78e607c8a218ae78ae8f346f2e8.tar.xz
Text duplication fix (#137)
* start testing text duplication * tests * fixes + tests
Diffstat (limited to 'testrig/db.go')
-rw-r--r--testrig/db.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/testrig/db.go b/testrig/db.go
index fe38c3164..f34f7936b 100644
--- a/testrig/db.go
+++ b/testrig/db.go
@@ -141,6 +141,12 @@ func StandardDBSetup(db db.DB, accounts map[string]*gtsmodel.Account) {
}
}
+ for _, v := range NewTestMentions() {
+ if err := db.Put(v); err != nil {
+ panic(err)
+ }
+ }
+
for _, v := range NewTestFaves() {
if err := db.Put(v); err != nil {
panic(err)