Skip to content

Commit

Permalink
Add failing test for typelevel#4170
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Nov 18, 2024
1 parent dd1c0f5 commit f5482db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/shared/src/test/scala/cats/effect/std/QueueSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -965,5 +965,11 @@ trait QueueTests[Q[_[_], _]] { self: BaseSpec =>
r <- IO(v2 must beEqualTo(2))
} yield r
}

"should return the queue size when take precedes offer" in ticked { implicit ticker =>
constructor(10).flatMap { q =>
take(q).background.use { took => IO.sleep(1.second) *> offer(q, 1) *> took *> size(q) }
} must completeAs(0)
}
}
}

0 comments on commit f5482db

Please sign in to comment.