suprnation / cats-actors

Cats Actors framework for building apps which are reactive. Cats actors uses a conceptual actor model as a higher level abstraction for concurrency.
Apache License 2.0
105 stars 9 forks source link

feature: Extended the TestKit with new test methods #29

Closed Mitrug closed 4 weeks ago

Mitrug commented 1 month ago

In this PR

  1. Added expectMsgPF, expectTerminated, and receiveWhile to the TestKit along with a TestKitSpec test class.
  2. Fixed issue with DeadLetter Mailbox returning false for Mailbox.isTerminated. This is incorrect because when the actor is stopped and mailboxes are switched, calling actor.cell.isClosed would return false. This is now updated to return true instead.
Mitrug commented 4 weeks ago

Merging into a different fork to create a release branch