Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
fail-fast: false
matrix:
java: ['[email protected]', '[email protected]']
scala: ['2.11.12', '2.12.13', '2.13.5', '3.0.0-RC1']
scala: ['2.11.12', '2.12.13', '2.13.5', '3.0.0-RC2']
platform: ['JVM', 'JS', 'Native']
steps:
- name: Checkout current branch
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.settings(stdSettings("zio"))
.settings(crossProjectSettings)
.settings(buildInfoSettings("zio"))
.settings(libraryDependencies += "dev.zio" %%% "izumi-reflect" % "1.0.0-M16")
.settings(libraryDependencies += "dev.zio" %%% "izumi-reflect" % "1.0.0-M17")
.enablePlugins(BuildInfoPlugin)

lazy val coreJVM = core.jvm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package zio.test
import zio.test.Assertion._
import zio.test.TestAspect._
import zio.test.environment.TestEnvironment
import zio.{Ref, ZIO}
import zio.{Has, Ref, ZIO, ZLayer}

object MutableRunnableSpecSpec
extends MutableRunnableSpec(
TestEnvironment.any ++ Ref.make(0).toLayer,
extends MutableRunnableSpec[MutableRunnableSpecSpecCompat.Environment](
TestEnvironment.any ++ ZLayer.fromEffect(Ref.make(0)),
sequential >>> samples(10) >>> before(ZIO.service[Ref[Int]].flatMap(_.update(_ + 1)))
) {
testM("ref 1") {
Expand All @@ -26,3 +26,7 @@ object MutableRunnableSpecSpec
} yield assert(value)(equalTo(13))
}
}

object MutableRunnableSpecSpecCompat {
type Environment = TestEnvironment with Has[Ref[Int]]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import zio.{ZIO, clock, console}

import java.io.IOException

object ComposedEmptyMockSpec extends ZIOBaseSpec with MockSpecUtils[Console with Clock] {
object ComposedEmptyMockSpec extends ZIOBaseSpec with MockSpecUtils[ComposedEmptyMockSpecCompat.Environment] {

import Assertion._
import Expectation._
Expand Down Expand Up @@ -63,3 +63,7 @@ object ComposedEmptyMockSpec extends ZIOBaseSpec with MockSpecUtils[Console with
)
)
}

object ComposedEmptyMockSpecCompat {
type Environment = Console with Clock
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ import zio.test.environment.TestEnvironment
* }
* }}}
*/
class DefaultMutableRunnableSpec extends MutableRunnableSpec(ZLayer.identity[TestEnvironment], TestAspect.identity)
class DefaultMutableRunnableSpec
extends MutableRunnableSpec[TestEnvironment](ZLayer.identity[TestEnvironment], TestAspect.identity)