summaryrefslogtreecommitdiff
path: root/internal/api/activitypub/users/inboxpost_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/activitypub/users/inboxpost_test.go')
-rw-r--r--internal/api/activitypub/users/inboxpost_test.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/internal/api/activitypub/users/inboxpost_test.go b/internal/api/activitypub/users/inboxpost_test.go
index 9d863f234..64c9f7e6c 100644
--- a/internal/api/activitypub/users/inboxpost_test.go
+++ b/internal/api/activitypub/users/inboxpost_test.go
@@ -376,7 +376,17 @@ func (suite *InboxPostTestSuite) TestPostUpdate() {
}
// emojis should be updated
- suite.Contains(dbUpdatedAccount.EmojiIDs, testEmoji.ID)
+ var haveUpdatedEmoji bool
+ for _, emoji := range dbUpdatedAccount.Emojis {
+ if emoji.Shortcode == testEmoji.Shortcode &&
+ emoji.Domain == testEmoji.Domain &&
+ emoji.ImageRemoteURL == emoji.ImageRemoteURL &&
+ emoji.ImageStaticRemoteURL == emoji.ImageStaticRemoteURL {
+ haveUpdatedEmoji = true
+ break
+ }
+ }
+ suite.True(haveUpdatedEmoji)
// account should be freshly fetched
suite.WithinDuration(time.Now(), dbUpdatedAccount.FetchedAt, 10*time.Second)