File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
http4s-server/src/test/scala/com/avast/sst/http4s/server/middleware Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,11 @@ class CorrelationIdMiddlewareTest extends AsyncFunSuite with Http4sDsl[IO] {
42
42
.use {
43
43
case (server, client) =>
44
44
client
45
- .fetch (
45
+ .run (
46
46
Request [IO ](uri = Uri .unsafeFromString(s " http:// ${server.address.getHostString}: ${server.address.getPort}/test " ))
47
47
.withHeaders(Header (" Correlation-Id" , " test-value" ))
48
- ) { response =>
48
+ )
49
+ .use { response =>
49
50
IO .delay {
50
51
assert(response.headers.get(CaseInsensitiveString (" Correlation-Id" )).get.value === " test-value" )
51
52
assert(response.headers.get(CaseInsensitiveString (" Attribute-Value" )).get.value === " Some(CorrelationId(test-value))" )
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ object Dependencies {
45
45
val datastaxJavaDriverCore = " 4.7.2"
46
46
val doobie = " 0.9.0"
47
47
val grpc = " 1.30.2"
48
- val http4s = " 0.21.4 "
48
+ val http4s = " 0.21.5 "
49
49
val micrometerCore = " 1.5.2"
50
50
val micrometerJmx = " 1.5.2"
51
51
val micrometerStatsD = " 1.5.2"
You can’t perform that action at this time.
0 commit comments