Skip to content

Commit

Permalink
fix tests and revert cats effect version (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgfraser authored Nov 5, 2021
1 parent 824d6dd commit 04d9a74
Show file tree
Hide file tree
Showing 3 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 @@ -28,8 +28,8 @@ inThisBuild(

addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
addCommandAlias("testJVM", ";zioInteropCatsJVM/test;zioTestInteropCatsJVM/test;coreOnlyTestJVM/test")
addCommandAlias("testJS", ";zioInteropCatsJS/test;zioTestInteropCatsJS/test;coreOnlyTestJS/test")
addCommandAlias("testJVM", ";zioInteropCatsTestsJVM/test;zioTestInteropCatsJVM/test;coreOnlyTestJVM/test")
addCommandAlias("testJS", ";zioInteropCatsTestsJS/test;zioTestInteropCatsJS/test;coreOnlyTestJS/test")

lazy val root = project
.in(file("."))
Expand All @@ -49,7 +49,7 @@ lazy val root = project

val zioVersion = "1.0.12"
val catsVersion = "2.6.1"
val catsEffectVersion = "3.2.9"
val catsEffectVersion = "3.1.1"
val catsMtlVersion = "1.2.1"
val disciplineScalaTestVersion = "2.1.5"
val fs2Version = "3.0.6"
Expand Down
2 changes: 1 addition & 1 deletion project/BuildHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object BuildHelper {

val Scala212 = "2.12.14"
val Scala213 = "2.13.6"
val Scala3 = "3.1.0"
val Scala3 = "3.0.2"

private val stdOptions = Seq(
"-deprecation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private[zio] trait CatsSpecBase
zManagedEq[R, Nothing, A]

implicit def cogenZIO[R: Arbitrary, E: Cogen, A: Cogen](implicit ticker: Ticker): Cogen[ZIO[R, E, A]] =
Cogen[Outcome[Option, E, A]].contramap { zio: ZIO[R, E, A] =>
Cogen[Outcome[Option, E, A]].contramap { (zio: ZIO[R, E, A]) =>
Arbitrary.arbitrary[R].sample match {
case Some(r) =>
val result = unsafeRun(zio.provide(r))
Expand Down

0 comments on commit 04d9a74

Please sign in to comment.