summaryrefslogtreecommitdiff
path: root/internal/db/bundb/account_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-01-19 14:02:04 +0100
committerLibravatar GitHub <noreply@github.com>2024-01-19 13:02:04 +0000
commit5ca86b1c575f9c42ad8d3d4a2b2d3e70c89e90df (patch)
tree3ac7578cd35b9c2f1dfb3903ef769d32f9c58d3d /internal/db/bundb/account_test.go
parent[performance] overhaul struct (+ result) caching library for simplicity, perf... (diff)
downloadgotosocial-5ca86b1c575f9c42ad8d3d4a2b2d3e70c89e90df.tar.xz
[chore] Harden up boolptr logic on Accounts, warn if not set (#2544)
Diffstat (limited to 'internal/db/bundb/account_test.go')
-rw-r--r--internal/db/bundb/account_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/db/bundb/account_test.go b/internal/db/bundb/account_test.go
index e03300700..d7f0c1c72 100644
--- a/internal/db/bundb/account_test.go
+++ b/internal/db/bundb/account_test.go
@@ -336,6 +336,7 @@ func (suite *AccountTestSuite) TestInsertAccountWithDefaults() {
suite.Equal("en", newAccount.Language)
suite.WithinDuration(time.Now(), newAccount.CreatedAt, 30*time.Second)
suite.WithinDuration(time.Now(), newAccount.UpdatedAt, 30*time.Second)
+ suite.True(*newAccount.Locked)
suite.False(*newAccount.Memorial)
suite.False(*newAccount.Bot)
suite.False(*newAccount.Discoverable)