Skip to content

Commit

Permalink
Fix strange Scala 3 compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
lukestephenson-zendesk committed Dec 1, 2021
1 parent f16c39c commit b381605
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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"))
}
}
Expand All @@ -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))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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")
)

Expand All @@ -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))
}
}

Expand Down

0 comments on commit b381605

Please sign in to comment.