Skip to content

Commit

Permalink
Merge pull request #251 from gemini-hlsw/update/munit-1.0.0
Browse files Browse the repository at this point in the history
Update munit to 1.0.0
  • Loading branch information
hugo-vrijswijk authored May 30, 2024
2 parents 2ad457d + 725bde5 commit 6cb17a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ val grackleVersion = "0.19.1"
val http4sVersion = "0.23.27"
val kindProjectorVersion = "0.13.2"
val log4catsVersion = "2.7.0"
val munitCatsEffectVersion = "1.0.7"
val munitVersion = "0.7.29"
val munitCatsEffectVersion = "2.0.0"
val munitVersion = "1.0.0"
val natchezVersion = "0.3.5"
val http4sBlazeVersion = "0.23.16"
val http4sJdkHttpClientVersion = "0.9.1"
Expand Down Expand Up @@ -42,6 +42,6 @@ lazy val core = project
"org.scalameta" %% "munit" % munitVersion % Test,
"org.typelevel" %% "grackle-circe" % grackleVersion % Test,
"org.typelevel" %% "log4cats-slf4j" % log4catsVersion % Test,
"org.typelevel" %% "munit-cats-effect-3" % munitCatsEffectVersion % Test,
"org.typelevel" %% "munit-cats-effect" % munitCatsEffectVersion % Test,
),
)
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import io.circe.Encoder
import io.circe.Json
import io.circe.JsonObject
import munit.CatsEffectSuite
import munit.catseffect.IOFixture
import org.http4s.blaze.server.BlazeServerBuilder
import org.http4s.headers.Authorization
import org.http4s.jdkhttpclient.JdkHttpClient
Expand Down Expand Up @@ -95,7 +96,7 @@ abstract class BaseSuite extends CatsEffectSuite:
_ <- Resource.make(sc.connect() *> sc.initialize(ps))(_ => sc.terminate() *> sc.disconnect())
yield sc

private lazy val serverFixture: Fixture[Server] =
private lazy val serverFixture: IOFixture[Server] =
ResourceSuiteLocalFixture("server", server)

override def munitFixtures =
Expand Down Expand Up @@ -173,4 +174,3 @@ abstract class BaseSuite extends CatsEffectSuite:
case Left(ResponseException(es, _)) => assertEquals(messages.toList, es.toList.map(_.message)).pure[IO]
case Left(other) => IO.raiseError(other)
case Right(a) => fail(s"Expected failure, got $a")

0 comments on commit 6cb17a5

Please sign in to comment.