[acme db interface] more unit tests
This commit is contained in:
parent
f71e27e787
commit
291fd5d45a
3 changed files with 127 additions and 93 deletions
|
@ -462,7 +462,7 @@ func provisionerFromContext(ctx context.Context) (acme.Provisioner, error) {
|
|||
func payloadFromContext(ctx context.Context) (*payloadInfo, error) {
|
||||
val, ok := ctx.Value(payloadContextKey).(*payloadInfo)
|
||||
if !ok || val == nil {
|
||||
return nil, acme.NewErrorISE("payload expected in request context")
|
||||
return nil, acme.NewError(acme.ErrorMalformedType, "payload expected in request context")
|
||||
}
|
||||
return val, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue