From ca0a53bf5f675cc9fa1f372bec0e812e64aa4936 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Sat, 4 May 2024 17:58:54 +0200 Subject: [PATCH] omit linting maybe? --- modules/forgefed/activity_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/forgefed/activity_test.go b/modules/forgefed/activity_test.go index 4c3e4c5e98..99dc721411 100644 --- a/modules/forgefed/activity_test.go +++ b/modules/forgefed/activity_test.go @@ -96,10 +96,10 @@ func Test_LikeUnmarshalJSON(t *testing.T) { }, wantErr: nil, }, - "invalid": { // ToDo: Here we are testing if the json parser detects invalid json, we could keep this test in case we bould our own. + "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:"), + wantErr: fmt.Errorf("cannot parse JSON:"), //no-lint }, }