diff options
| author | 2025-05-22 12:26:11 +0200 | |
|---|---|---|
| committer | 2025-05-22 12:26:11 +0200 | |
| commit | d5c9c4adc167cdb05e73f5105702cf340293e61c (patch) | |
| tree | 1d21fe376099864900837eba675a965517f98e5d /internal/cleaner/emoji_test.go | |
| parent | [feature] Allow exposing allows, implement `/api/v1/domain_blocks` and `/api/... (diff) | |
| download | gotosocial-d5c9c4adc167cdb05e73f5105702cf340293e61c.tar.xz | |
[chore] Upgrade to Go 1.24 (#4187)
* Set `go.mod` to 1.24 now that it's been out for 3 months.
* Update all the test to use `testing.T.Context()`.
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4187
Co-authored-by: Daenney <git@noreply.sourcery.dny.nu>
Co-committed-by: Daenney <git@noreply.sourcery.dny.nu>
Diffstat (limited to 'internal/cleaner/emoji_test.go')
| -rw-r--r-- | internal/cleaner/emoji_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/cleaner/emoji_test.go b/internal/cleaner/emoji_test.go index b789d2d5a..1b33224ef 100644 --- a/internal/cleaner/emoji_test.go +++ b/internal/cleaner/emoji_test.go @@ -26,42 +26,42 @@ func copyMap(in map[string]*gtsmodel.Emoji) map[string]*gtsmodel.Emoji { func (suite *CleanerTestSuite) TestEmojiUncacheRemote() { suite.testEmojiUncacheRemote( - context.Background(), + suite.T().Context(), mapvals(suite.emojis), ) } func (suite *CleanerTestSuite) TestEmojiUncacheRemoteDryRun() { suite.testEmojiUncacheRemote( - gtscontext.SetDryRun(context.Background()), + gtscontext.SetDryRun(suite.T().Context()), mapvals(suite.emojis), ) } func (suite *CleanerTestSuite) TestEmojiFixBroken() { suite.testEmojiFixBroken( - context.Background(), + suite.T().Context(), mapvals(suite.emojis), ) } func (suite *CleanerTestSuite) TestEmojiFixBrokenDryRun() { suite.testEmojiFixBroken( - gtscontext.SetDryRun(context.Background()), + gtscontext.SetDryRun(suite.T().Context()), mapvals(suite.emojis), ) } func (suite *CleanerTestSuite) TestEmojiPruneUnused() { suite.testEmojiPruneUnused( - context.Background(), + suite.T().Context(), mapvals(suite.emojis), ) } func (suite *CleanerTestSuite) TestEmojiPruneUnusedDryRun() { suite.testEmojiPruneUnused( - gtscontext.SetDryRun(context.Background()), + gtscontext.SetDryRun(suite.T().Context()), mapvals(suite.emojis), ) } @@ -74,7 +74,7 @@ func (suite *CleanerTestSuite) TestEmojiFixCacheStates() { emojis["rainbow"].Cached = util.Ptr(false) suite.testEmojiFixCacheStates( - context.Background(), + suite.T().Context(), mapvals(emojis), ) } @@ -87,7 +87,7 @@ func (suite *CleanerTestSuite) TestEmojiFixCacheStatesDryRun() { emojis["rainbow"].Cached = util.Ptr(false) suite.testEmojiFixCacheStates( - gtscontext.SetDryRun(context.Background()), + gtscontext.SetDryRun(suite.T().Context()), mapvals(emojis), ) } |
