From 7428ff07363534004298e8ec8a587d26f6bd61f8 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Fri, 10 Jun 2022 12:30:13 -0500 Subject: [PATCH] Fix TestActivityPubPersonInbox segfault --- integrations/api_activitypub_person_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/api_activitypub_person_test.go b/integrations/api_activitypub_person_test.go index c158fbc256..2599b381ca 100644 --- a/integrations/api_activitypub_person_test.go +++ b/integrations/api_activitypub_person_test.go @@ -85,7 +85,7 @@ func TestActivityPubPersonInbox(t *testing.T) { setting.AppURL = appURL }() username1 := "user1" - var ctx context.Context + ctx := context.Context() user1, err := user_model.GetUserByName(ctx, username1) assert.NoError(t, err) user1url := fmt.Sprintf("%s/api/v1/activitypub/user/%s#main-key", srv.URL, username1)