Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerman committed Nov 12, 2023
1 parent 66f1b32 commit 4d6c6c6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zio/src/test/scala/colibri/ObservableSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,11 @@ class ObservableSpec extends AsyncFlatSpec with Matchers {
import scala.concurrent.duration._

val test = for {
_ <- IO.sleep(FiniteDuration.apply(0, TimeUnit.SECONDS))
//TODO: why does it need an actual delay?
_ <- IO.sleep(FiniteDuration.apply(1, TimeUnit.SECONDS))

_ = received shouldBe List(15, 10, 6, 3, 1, 0)
_ = errors shouldBe 0

//TODO: why does it need an actual delay?
_ <- IO.sleep(FiniteDuration.apply(10, TimeUnit.MILLISECONDS))
_ = cancelable.isEmpty() shouldBe true
} yield succeed

Expand Down

0 comments on commit 4d6c6c6

Please sign in to comment.