From 1a07db1a407f95ee9b1da93ca9553cd3a179cb45 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Sun, 5 May 2024 16:35:25 +0200 Subject: [PATCH] omit linting next try --- modules/forgefed/activity_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/forgefed/activity_test.go b/modules/forgefed/activity_test.go index 99dc721411..9a7979c4e6 100644 --- a/modules/forgefed/activity_test.go +++ b/modules/forgefed/activity_test.go @@ -84,6 +84,7 @@ func Test_LikeUnmarshalJSON(t *testing.T) { wantErr error } + //revive:disable tests := map[string]testPair{ "with ID": { item: []byte(`{"type":"Like","actor":"https://repo.prod.meissa.de/api/activitypub/user-id/1","object":"https://codeberg.org/api/activitypub/repository-id/1"}`), @@ -99,9 +100,10 @@ func Test_LikeUnmarshalJSON(t *testing.T) { "invalid": { item: []byte(`{"type":"Invalid","actor":"https://repo.prod.meissa.de/api/activitypub/user-id/1","object":"https://codeberg.org/api/activitypub/repository-id/1"`), want: &ForgeLike{}, - wantErr: fmt.Errorf("cannot parse JSON:"), //no-lint + wantErr: fmt.Errorf("cannot parse JSON:"), }, } + //revive:enable for name, test := range tests { t.Run(name, func(t *testing.T) {