fixing broken unit tests
This commit is contained in:
parent
bdf4c0f836
commit
df05340521
5 changed files with 22 additions and 13 deletions
|
@ -478,8 +478,8 @@ func TestHandler_GetChallenge(t *testing.T) {
|
|||
ctx := context.WithValue(context.Background(), accContextKey, acc)
|
||||
return test{
|
||||
ctx: ctx,
|
||||
statusCode: 400,
|
||||
err: acme.NewError(acme.ErrorMalformedType, "payload expected in request context"),
|
||||
statusCode: 500,
|
||||
err: acme.NewErrorISE("payload expected in request context"),
|
||||
}
|
||||
},
|
||||
"fail/nil-payload": func(t *testing.T) test {
|
||||
|
@ -489,8 +489,8 @@ func TestHandler_GetChallenge(t *testing.T) {
|
|||
ctx = context.WithValue(ctx, payloadContextKey, nil)
|
||||
return test{
|
||||
ctx: ctx,
|
||||
statusCode: 400,
|
||||
err: acme.NewError(acme.ErrorMalformedType, "payload expected in request context"),
|
||||
statusCode: 500,
|
||||
err: acme.NewErrorISE("payload expected in request context"),
|
||||
}
|
||||
},
|
||||
"fail/db.GetChallenge-error": func(t *testing.T) test {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue