Skip to content

Commit d4e6d07

Browse files
committed
chore(deps): http4s 0.22.0
1 parent c57b57d commit d4e6d07

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

http4s/src/test/scala/com/avast/grpc/jsonbridge/http4s/Http4sTest.scala

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import org.http4s.headers.{`Content-Length`, `Content-Type`}
88
import org.http4s.{Charset, Header, Headers, MediaType, Method, Request, Uri}
99
import org.scalatest.concurrent.ScalaFutures
1010
import org.scalatest.funsuite.AnyFunSuite
11+
import org.typelevel.ci.CIString
1112

1213
import scala.concurrent.ExecutionContext
1314
import scala.concurrent.ExecutionContext.Implicits.global
@@ -41,11 +42,7 @@ class Http4sTest extends AnyFunSuite with ScalaFutures {
4142

4243
assertResult("""{"sum":3}""")(response.as[String].unsafeRunSync())
4344

44-
assertResult(
45-
Headers.of(
46-
`Content-Type`(MediaType.application.json),
47-
`Content-Length`.fromLong(9).getOrElse(fail())
48-
)
45+
assertResult(Headers(`Content-Type`(MediaType.application.json), `Content-Length`(9))
4946
)(response.headers)
5047
}
5148

@@ -65,11 +62,7 @@ class Http4sTest extends AnyFunSuite with ScalaFutures {
6562

6663
assertResult("""{"sum":3}""")(response.as[String].unsafeRunSync())
6764

68-
assertResult(
69-
Headers.of(
70-
`Content-Type`(MediaType.application.json),
71-
`Content-Length`.fromLong(9).getOrElse(fail())
72-
)
65+
assertResult(Headers(`Content-Type`(MediaType.application.json), `Content-Length`(9))
7366
)(response.headers)
7467
}
7568

@@ -159,7 +152,7 @@ class Http4sTest extends AnyFunSuite with ScalaFutures {
159152
Request[IO](
160153
method = Method.POST,
161154
uri = Uri.fromString("com.avast.grpc.jsonbridge.test.TestService/Add").getOrElse(fail()),
162-
headers = Headers.of(Header(TestServiceImpl.HeaderName, headerValue))
155+
headers = Headers(Header.Raw(CIString(TestServiceImpl.HeaderName), headerValue))
163156
).withEntity(""" { "a": 1, "b": 2} """)
164157
.withContentType(`Content-Type`(MediaType.application.json))
165158
)

0 commit comments

Comments
 (0)