summaryrefslogtreecommitdiff
path: root/internal/db/bundb/application_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-04-16 13:25:47 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-16 13:25:47 +0200
commit6de5717d7f8666c8a47cbdd6d9fd3b292be6fce4 (patch)
treef7353c1b29494e1b9d64cd5d7e8f2e3bcc8885c7 /internal/db/bundb/application_test.go
parent[feature/performance] Store account stats in separate table (#2831) (diff)
downloadgotosocial-6de5717d7f8666c8a47cbdd6d9fd3b292be6fce4.tar.xz
[bugfix] fix get all tokens (#2841)
Diffstat (limited to 'internal/db/bundb/application_test.go')
-rw-r--r--internal/db/bundb/application_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/db/bundb/application_test.go b/internal/db/bundb/application_test.go
index d2ab05ebd..d03079f2a 100644
--- a/internal/db/bundb/application_test.go
+++ b/internal/db/bundb/application_test.go
@@ -123,6 +123,14 @@ func (suite *ApplicationTestSuite) TestDeleteApplicationBy() {
}
}
+func (suite *ApplicationTestSuite) TestGetAllTokens() {
+ tokens, err := suite.db.GetAllTokens(context.Background())
+ if err != nil {
+ suite.FailNow(err.Error())
+ }
+ suite.NotEmpty(tokens)
+}
+
func TestApplicationTestSuite(t *testing.T) {
suite.Run(t, new(ApplicationTestSuite))
}