Skip to content

Commit

Permalink
ca: fixed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
azazeal committed Mar 21, 2022
1 parent 8265990 commit 7cf78d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ca/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})

Expand Down

0 comments on commit 7cf78d0

Please sign in to comment.