diff --git a/modules/framework/monix-bio/test/src/weaver/monixbiocompat/IOSuiteTest.scala b/modules/framework/monix-bio/test/src/weaver/monixbiocompat/IOSuiteTest.scala index 76b400dd..c4cd5372 100644 --- a/modules/framework/monix-bio/test/src/weaver/monixbiocompat/IOSuiteTest.scala +++ b/modules/framework/monix-bio/test/src/weaver/monixbiocompat/IOSuiteTest.scala @@ -5,7 +5,7 @@ import cats.effect.Resource import weaver.framework.{ DogFood, MonixBIO } import monix.bio.Task -import sbt.testing.Status +import sbt.testing.Status.{ Error, Failure } object IOSuiteTest extends MutableIOSuite { override type Res = DogFood[Task] @@ -25,7 +25,7 @@ object IOSuiteTest extends MutableIOSuite { else None } val maybeStatus = maybeEvent.map(_.status()) - expect(maybeStatus.contains(Status.Error)) && + expect(maybeStatus.contains(Error)) && expect(maybeThrowable.map(_.getMessage).contains("oh no")) } } @@ -35,7 +35,7 @@ object IOSuiteTest extends MutableIOSuite { dogfood.runSuite(TestWithFailedExpectation).map { case (_, events) => val maybeEvent = events.headOption val maybeStatus = maybeEvent.map(_.status()) - expect(maybeStatus.contains(Status.Failure)) + expect(maybeStatus.contains(Failure)) } } diff --git a/modules/framework/monix/test/src/weaver/monixcompat/TaskSuiteTest.scala b/modules/framework/monix/test/src/weaver/monixcompat/TaskSuiteTest.scala index 96b4a265..9543ad4d 100644 --- a/modules/framework/monix/test/src/weaver/monixcompat/TaskSuiteTest.scala +++ b/modules/framework/monix/test/src/weaver/monixcompat/TaskSuiteTest.scala @@ -5,7 +5,7 @@ import cats.effect.Resource import weaver.framework.{ DogFood, Monix } import monix.eval.Task -import sbt.testing.Status +import sbt.testing.Status.{ Error, Failure } object TaskSuiteTest extends MutableTaskSuite { @@ -28,7 +28,7 @@ object TaskSuiteTest extends MutableTaskSuite { val maybeStatus = maybeEvent.map(_.status()) expect.all( - maybeStatus.contains(Status.Error), + maybeStatus.contains(Error), maybeThrowable.map(_.getMessage).contains("oh no") ) @@ -40,7 +40,7 @@ object TaskSuiteTest extends MutableTaskSuite { dogfood.runSuite(TestWithFailedExpectation).map { case (_, events) => val maybeEvent = events.headOption val maybeStatus = maybeEvent.map(_.status()) - expect(maybeStatus.contains(Status.Failure)) + expect(maybeStatus.contains(Failure)) } }