Skip to content

Commit

Permalink
http4s client identity
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Apr 16, 2019
1 parent 95f8c56 commit fd59a39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class DefaultParametersTest extends FunSuite with Matchers with SwaggerSpecRunne
val req = Request[F](method = Method.GET, uri = Uri.unsafeFromString(host + basePath + "/store/order/" + Formatter.addPath(orderId) + "?" + Formatter.addArg("defparm_opt", defparmOpt) + Formatter.addArg("defparm", defparm)), headers = Headers(allHeaders))
httpClient.fetch(req)({
case Ok(resp) =>
getOrderByIdOkDecoder.decode(resp, strict = false).fold(throw _, identity).map(GetOrderByIdResponse.Ok)
getOrderByIdOkDecoder.decode(resp, strict = false).fold(throw _, Predef.identity).map(GetOrderByIdResponse.Ok)
case BadRequest(_) =>
F.pure(GetOrderByIdResponse.BadRequest)
case NotFound(_) =>
Expand Down

0 comments on commit fd59a39

Please sign in to comment.