forked from TrueCloudLab/certificates
ca: fixed broken tests
This commit is contained in:
parent
23c81db95a
commit
4cdb38b2e8
1 changed files with 2 additions and 2 deletions
|
@ -569,9 +569,9 @@ func TestClient_RenewWithToken(t *testing.T) {
|
||||||
|
|
||||||
srv.Config.Handler = http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
|
srv.Config.Handler = http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
|
||||||
if req.Header.Get("Authorization") != "Bearer token" {
|
if req.Header.Get("Authorization") != "Bearer token" {
|
||||||
api.JSONStatus(w, errs.InternalServer("force"), 500)
|
render.JSONStatus(w, errs.InternalServer("force"), 500)
|
||||||
} else {
|
} else {
|
||||||
api.JSONStatus(w, tt.response, tt.responseCode)
|
render.JSONStatus(w, tt.response, tt.responseCode)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue