From 67340613858faea91c296c35290d12003b9db5eb Mon Sep 17 00:00:00 2001 From: "lucuma-steward[bot]" <106720676+lucuma-steward[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 15:32:23 +0000 Subject: [PATCH 1/3] Update munit to 1.0.0 --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index ec3d97c..d02dab2 100644 --- a/build.sbt +++ b/build.sbt @@ -7,7 +7,7 @@ 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 munitVersion = "1.0.0" val natchezVersion = "0.3.5" val http4sBlazeVersion = "0.23.16" val http4sJdkHttpClientVersion = "0.9.1" From 8ece0f22fde93f50dcb607e2a134533bf4ce64b7 Mon Sep 17 00:00:00 2001 From: Hugo van Rijswijk Date: Thu, 30 May 2024 10:33:08 +0200 Subject: [PATCH 2/3] Update munit-cats-effect version --- build.sbt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index d02dab2..4bd22af 100644 --- a/build.sbt +++ b/build.sbt @@ -6,7 +6,7 @@ val grackleVersion = "0.19.0" val http4sVersion = "0.23.27" val kindProjectorVersion = "0.13.2" val log4catsVersion = "2.7.0" -val munitCatsEffectVersion = "1.0.7" +val munitCatsEffectVersion = "2.0.0" val munitVersion = "1.0.0" val natchezVersion = "0.3.5" val http4sBlazeVersion = "0.23.16" @@ -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, ), ) From 725bde5155d855de46c180ec493ab412f18b0f85 Mon Sep 17 00:00:00 2001 From: Hugo van Rijswijk Date: Thu, 30 May 2024 10:39:16 +0200 Subject: [PATCH 3/3] Update baseSuite --- .../core/src/test/scala/lucuma/graphql/routes/BaseSuite.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/test/scala/lucuma/graphql/routes/BaseSuite.scala b/modules/core/src/test/scala/lucuma/graphql/routes/BaseSuite.scala index 752cc3a..78bac8e 100644 --- a/modules/core/src/test/scala/lucuma/graphql/routes/BaseSuite.scala +++ b/modules/core/src/test/scala/lucuma/graphql/routes/BaseSuite.scala @@ -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 @@ -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 = @@ -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") -