Fixed yet another race condition
This commit is contained in:
parent
e0fdec8fc1
commit
65442bd6a9
1 changed files with 5 additions and 0 deletions
|
|
@ -360,9 +360,14 @@ class EventSourcedBehaviorSpec
|
|||
|
||||
val counterDefaultRecoveryStrategy = spawn(counterWithRecoveryStrategy(Recovery.default))
|
||||
counterSetup ! Increment
|
||||
|
||||
counterSetup ! StopIt
|
||||
probe.expectTerminated(counterSetup)
|
||||
|
||||
counterDefaultRecoveryStrategy ! GetValue(probe.ref)
|
||||
counterDefaultRecoveryStrategy ! StopIt
|
||||
probe.expectTerminated(counterDefaultRecoveryStrategy)
|
||||
|
||||
probe.expectMessage(State(4, Vector(0, 1, 2, 3)))
|
||||
|
||||
val counterDisabledRecoveryStrategy = spawn(counterWithRecoveryStrategy(Recovery.disabled))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue