From 702a9633080a276b0cf4db9da9c72ade8825eb46 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Wed, 13 Apr 2022 21:34:12 -0500 Subject: [PATCH] Move /#main-key to #main-key in tests --- integrations/api_activitypub_person_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/api_activitypub_person_test.go b/integrations/api_activitypub_person_test.go index 107ea10bf0..14eec69250 100644 --- a/integrations/api_activitypub_person_test.go +++ b/integrations/api_activitypub_person_test.go @@ -53,7 +53,7 @@ func TestActivityPubPerson(t *testing.T) { pkp := person.GetW3IDSecurityV1PublicKey() assert.NotNil(t, pkp) - publicKeyID := keyID + "/#main-key" + publicKeyID := keyID + "#main-key" var pkpFound vocab.W3IDSecurityV1PublicKey for pkpIter := pkp.Begin(); pkpIter != pkp.End(); pkpIter = pkpIter.Next() { if !pkpIter.IsW3IDSecurityV1PublicKey() { @@ -113,7 +113,7 @@ func TestActivityPubPersonInbox(t *testing.T) { username1 := "user1" user1, err := user_model.GetUserByName(username1) assert.NoError(t, err) - user1url := fmt.Sprintf("%s/api/v1/activitypub/user/%s/#main-key", srv.URL, username1) + user1url := fmt.Sprintf("%s/api/v1/activitypub/user/%s#main-key", srv.URL, username1) c, err := activitypub.NewClient(user1, user1url) assert.NoError(t, err) username2 := "user2"