From ebef7697039f258996eb360ed0ae33b8563fc04a Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 20 Mar 2022 10:51:11 -0500 Subject: [PATCH] Assert if json.Unmarshal succeeds Signed-off-by: Anthony Wang --- integrations/api_activitypub_person_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/integrations/api_activitypub_person_test.go b/integrations/api_activitypub_person_test.go index a3681ca855..75daf0d81e 100644 --- a/integrations/api_activitypub_person_test.go +++ b/integrations/api_activitypub_person_test.go @@ -36,6 +36,7 @@ func TestActivityPubPerson(t *testing.T) { assert.Contains(t, resp.Body.String(), "@context") var m map[string]interface{} err := json.Unmarshal(resp.Body.Bytes(), &m) + assert.Equal(t, err, nil) var person vocab.ActivityStreamsPerson resolver, _ := streams.NewJSONResolver(func(c context.Context, p vocab.ActivityStreamsPerson) error {