1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-18 16:14:26 +00:00

Fix lint error

This commit is contained in:
Anthony Wang 2022-06-10 13:28:50 -05:00
parent 7428ff0736
commit 66b1761738
No known key found for this signature in database
GPG Key ID: BC96B00AEC5F2D76

View File

@ -85,7 +85,7 @@ func TestActivityPubPersonInbox(t *testing.T) {
setting.AppURL = appURL setting.AppURL = appURL
}() }()
username1 := "user1" username1 := "user1"
ctx := context.Context() ctx := context.Background()
user1, err := user_model.GetUserByName(ctx, username1) user1, err := user_model.GetUserByName(ctx, username1)
assert.NoError(t, err) 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)