[chore] Harden up boolptr logic on Accounts, warn if not set (#2544)

This commit is contained in:
tobi 2024-01-19 14:02:04 +01:00 committed by GitHub
commit 5ca86b1c57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 208 additions and 38 deletions

View file

@ -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)