aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-06-16 11:08:24 -0500
committerAnthony Wang2022-06-16 11:08:24 -0500
commit3a8b8408b4c12ddc845f035e96e3fc291e2bf860 (patch)
treee27dfd6edd2b34bcd921032e36f5f4391e631f69
parent6602fd136ee721dee427e49faa011114cb151649 (diff)
Fix failing ActivityPubMissingPerson test
We now use ctx.ContextUser so the message printed out when a user does not exist is slightly different
-rw-r--r--integrations/api_activitypub_person_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/api_activitypub_person_test.go b/integrations/api_activitypub_person_test.go
index b6e4c069e..4898d5e01 100644
--- a/integrations/api_activitypub_person_test.go
+++ b/integrations/api_activitypub_person_test.go
@@ -64,7 +64,7 @@ func TestActivityPubMissingPerson(t *testing.T) {
req := NewRequestf(t, "GET", "/api/v1/activitypub/user/nonexistentuser")
resp := MakeRequest(t, req, http.StatusNotFound)
- assert.Contains(t, resp.Body.String(), "GetUserByName")
+ assert.Contains(t, resp.Body.String(), "user redirect does not exist")
})
}