aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-03-20 10:51:11 -0500
committerAnthony Wang2022-03-20 10:53:05 -0500
commitebef7697039f258996eb360ed0ae33b8563fc04a (patch)
tree36e6382ebb15ef417ab69a75a72b973ef52b861b
parentd75809aeee4984ca520ffb79a6ff28ed62a777db (diff)
Assert if json.Unmarshal succeeds
Signed-off-by: Anthony Wang <ta180m@pm.me>
-rw-r--r--integrations/api_activitypub_person_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/integrations/api_activitypub_person_test.go b/integrations/api_activitypub_person_test.go
index a3681ca85..75daf0d81 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 {