Skip to content

Commit

Permalink
Merge pull request #297 from http4s/update/series/0.24/munit-cats-eff…
Browse files Browse the repository at this point in the history
…ect-3-2.0.0

Update munit-cats-effect-3 to 2.0.0 in series/0.24
  • Loading branch information
rossabaker authored Jun 6, 2024
2 parents 8fb5dcb + a41227c commit f9dd1d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ lazy val root = tlCrossRootProject.aggregate(servlet, examples)
val asyncHttpClientVersion = "2.12.3"
val jettyVersion = "10.0.21"
val http4sVersion = "0.23.27"
val munitCatsEffectVersion = "1.0.7"
val munitCatsEffectVersion = "2.0.0"
val servletApiVersion = "4.0.1"

lazy val servlet = project
Expand All @@ -39,7 +39,7 @@ lazy val servlet = project
"org.eclipse.jetty" % "jetty-servlet" % jettyVersion % Test,
"org.http4s" %% "http4s-dsl" % http4sVersion % Test,
"org.http4s" %% "http4s-server" % http4sVersion,
"org.typelevel" %% "munit-cats-effect-3" % munitCatsEffectVersion % Test,
"org.typelevel" %% "munit-cats-effect" % munitCatsEffectVersion % Test,
),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class AsyncHttp4sServletSuite extends CatsEffectSuite {
.orNotFound

private def servletServer(asyncTimeout: FiniteDuration = 10.seconds) =
ResourceFixture[Int](
ResourceFunFixture[Int](
Dispatcher.parallel[IO].flatMap(d => TestEclipseServer(servlet(d, asyncTimeout)))
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class BlockingHttp4sServletSuite extends CatsEffectSuite {
}
.orNotFound

private val servletServer = ResourceFixture(
private val servletServer = ResourceFunFixture(
Dispatcher.parallel[IO].flatMap(d => TestEclipseServer(servlet(d)))
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,25 @@ class RouterInServletSuite extends CatsEffectSuite {
)

private val serverWithoutRouter =
ResourceFixture[Int](Dispatcher.parallel[IO].flatMap(d => mkServer(mainRoutes, dispatcher = d)))
ResourceFunFixture[Int](
Dispatcher.parallel[IO].flatMap(d => mkServer(mainRoutes, dispatcher = d))
)
private val server =
ResourceFixture[Int](Dispatcher.parallel[IO].flatMap(d => mkServer(router, dispatcher = d)))
ResourceFunFixture[Int](Dispatcher.parallel[IO].flatMap(d => mkServer(router, dispatcher = d)))
private val serverWithContextPath =
ResourceFixture[Int](
ResourceFunFixture[Int](
Dispatcher
.parallel[IO]
.flatMap(d => mkServer(router, contextPath = "/context", dispatcher = d))
)
private val serverWithServletPath =
ResourceFixture[Int](
ResourceFunFixture[Int](
Dispatcher
.parallel[IO]
.flatMap(d => mkServer(router, servletPath = "/servlet/*", dispatcher = d))
)
private val serverWithContextAndServletPath =
ResourceFixture[Int](
ResourceFunFixture[Int](
Dispatcher
.parallel[IO]
.flatMap(d =>
Expand Down

0 comments on commit f9dd1d4

Please sign in to comment.