From df676a47d05b20f7bfe4fdae350f50af15b52905 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 2 Dec 2022 11:39:42 +0800 Subject: Remove session in api tests (#21984) It's no meaning to request an API route with session. --- tests/integration/api_org_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/integration/api_org_test.go') diff --git a/tests/integration/api_org_test.go b/tests/integration/api_org_test.go index 5cd138eee2..0be0c170d6 100644 --- a/tests/integration/api_org_test.go +++ b/tests/integration/api_org_test.go @@ -88,7 +88,7 @@ func TestAPIOrgEdit(t *testing.T) { Visibility: "private", } req := NewRequestWithJSON(t, "PATCH", "/api/v1/orgs/user3?token="+token, &org) - resp := session.MakeRequest(t, req, http.StatusOK) + resp := MakeRequest(t, req, http.StatusOK) var apiOrg api.Organization DecodeJSON(t, resp, &apiOrg) @@ -115,7 +115,7 @@ func TestAPIOrgEditBadVisibility(t *testing.T) { Visibility: "badvisibility", } req := NewRequestWithJSON(t, "PATCH", "/api/v1/orgs/user3?token="+token, &org) - session.MakeRequest(t, req, http.StatusUnprocessableEntity) + MakeRequest(t, req, http.StatusUnprocessableEntity) }) } -- cgit v1.2.3