summaryrefslogtreecommitdiff
path: root/internal/db/bundb/account_test.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-08-02 12:15:11 +0000
committerLibravatar GitHub <noreply@github.com>2024-08-02 13:15:11 +0100
commit0f734a24100383171a866fccc194dea578141d74 (patch)
treea2cfdebeb1098ef39a8b2907a0933ac7f18a3ca3 /internal/db/bundb/account_test.go
parent[chore] add back exif-terminator and use only for jpeg,png,webp (#3161) (diff)
downloadgotosocial-0f734a24100383171a866fccc194dea578141d74.tar.xz
[chore] move PopulateAccountStats() nil check often performed into function itself (#3158)
* move PopulateAccountStats() nil check often performed into function itself * fix test to take in mind we don't repopulate account stats if not-nil
Diffstat (limited to 'internal/db/bundb/account_test.go')
-rw-r--r--internal/db/bundb/account_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/db/bundb/account_test.go b/internal/db/bundb/account_test.go
index 116ea19f0..28c9274f7 100644
--- a/internal/db/bundb/account_test.go
+++ b/internal/db/bundb/account_test.go
@@ -743,6 +743,10 @@ func (suite *AccountTestSuite) TestAccountStatsAll() {
suite.FailNow(err.Error())
}
+ // Nil out account stats to allow
+ // db to refetch + regenerate them.
+ account.Stats = nil
+
// Get stats for a third time, they
// should get regenerated now, but
// only for local accounts.