Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo committed Aug 18, 2023
1 parent d5763cf commit 77481c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zio-http/src/test/scala/zio/http/endpoint/EndpointSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ object EndpointSpec extends ZIOHttpSpec {

for {
response <- routes.toHttpApp.runZIO(
Request.get(URL.decode(s"/posts?id=$id").toOption.get),
Request
.get(URL.decode(s"/posts?id=$id").toOption.get)
.addHeader(Header.Accept(MediaType.text.`plain`)),
)
contentType = response.header(Header.ContentType)
} yield assertTrue(extractStatus(response).code == 200) &&
Expand Down

0 comments on commit 77481c5

Please sign in to comment.