Harden EventSourcedBehaviorStashSpec, #30543 (#30644)

* remove assert on unhandled message, not important to
  what the test is verifying
* I think message 6 might not have arrived yet, and
  therefore not directed to unhandled
This commit is contained in:
Patrik Nordwall 2021-09-07 10:46:19 +02:00 committed by GitHub
parent 3eb8d57649
commit f733639988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -622,8 +622,6 @@ class EventSourcedBehaviorStashSpec
"stop from PoisonPill after unstashing completed" in {
val c = spawn(counter(nextPid()))
val ackProbe = TestProbe[Ack]()
val unhandledProbe = createTestProbe[UnhandledMessage]()
system.eventStream ! EventStream.Subscribe(unhandledProbe.ref)
c ! Increment("1", ackProbe.ref)
ackProbe.expectMessage(Ack("1"))
@ -648,8 +646,6 @@ class EventSourcedBehaviorStashSpec
ackProbe.expectTerminated(c)
unhandledProbe.receiveMessage()
// 6 shouldn't make it, already stopped
ackProbe.expectNoMessage(100.millis)
}