Merge pull request #27977 from johanandren/wip-unbreak-EventSourcedSequenceNumberSpec

Two new test cases missed the PersistenceId.ofUniqueId
This commit is contained in:
Patrik Nordwall 2019-10-11 16:37:51 +02:00 committed by GitHub
commit bb622e639b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ class EventSourcedSequenceNumberSpec
"be available while replaying stash" in {
val probe = TestProbe[String]()
val ref = spawn(behavior(PersistenceId("ess-2"), probe.ref))
val ref = spawn(behavior(PersistenceId.ofUniqueId("ess-2"), probe.ref))
probe.expectMessage("0 onRecoveryComplete")
ref ! "stash"
@ -103,7 +103,7 @@ class EventSourcedSequenceNumberSpec
// reproducer for #27935
"not fail when snapshotting" in {
val probe = TestProbe[String]()
val ref = spawn(behavior(PersistenceId("ess-3"), probe.ref))
val ref = spawn(behavior(PersistenceId.ofUniqueId("ess-3"), probe.ref))
probe.expectMessage("0 onRecoveryComplete")
ref ! "cmd"