From 4cdb38b2e8baa49c100d8c67d87916eb69c52164 Mon Sep 17 00:00:00 2001 From: Panagiotis Siatras Date: Mon, 21 Mar 2022 18:50:12 +0200 Subject: [PATCH] ca: fixed broken tests --- ca/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ca/client_test.go b/ca/client_test.go index b83f689e..adef1031 100644 --- a/ca/client_test.go +++ b/ca/client_test.go @@ -569,9 +569,9 @@ func TestClient_RenewWithToken(t *testing.T) { srv.Config.Handler = http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { if req.Header.Get("Authorization") != "Bearer token" { - api.JSONStatus(w, errs.InternalServer("force"), 500) + render.JSONStatus(w, errs.InternalServer("force"), 500) } else { - api.JSONStatus(w, tt.response, tt.responseCode) + render.JSONStatus(w, tt.response, tt.responseCode) } })