Skip to content

Commit

Permalink
Fix breaking changes in JettyServerSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Jun 5, 2024
1 parent 2ad6910 commit 81ac187
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import cats.effect.IO
import cats.effect.Resource
import cats.effect.Temporal
import munit.CatsEffectSuite
import munit.catseffect.IOFixture
import org.eclipse.jetty.client.HttpClient
import org.eclipse.jetty.client.api.Request
import org.eclipse.jetty.client.util.StringRequestContent
Expand All @@ -40,7 +41,7 @@ class JettyServerSuite extends CatsEffectSuite {
Resource.make(IO(new HttpClient()))(c => IO(c.stop())).evalTap(c => IO(c.start())),
)

override def munitFixtures: List[Fixture[HttpClient]] = List(client)
override def munitFixtures: List[IOFixture[HttpClient]] = List(client)

private val serverR =
builder
Expand Down Expand Up @@ -68,7 +69,7 @@ class JettyServerSuite extends CatsEffectSuite {
)
.resource

private val jettyServer = ResourceFixture[Server](serverR)
private val jettyServer = ResourceFunFixture[Server](serverR)

private def fetchBody(req: Request): IO[String] =
IO.interruptible(req.send().getContentAsString())
Expand Down

0 comments on commit 81ac187

Please sign in to comment.