Support ClusterSharding passivation in BackoffSupervisor (#25933)

* Specific final stop message predicate instead of arbitrary action
This commit is contained in:
Christopher Batey 2018-12-06 10:10:37 +00:00 committed by GitHub
parent 8b8c7355bf
commit e5c1fc02a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 212 additions and 34 deletions

View file

@ -258,7 +258,7 @@ class MessageSerializerPersistenceSpec extends AkkaSpec(customSerializers) {
val expected = PersistentRepr(MyPayload(".a."), 13, "p1", "", true, Actor.noSender)
val serializer = serialization.findSerializerFor(expected)
val deserialized = serializer.fromBinary(bytes, None).asInstanceOf[PersistentRepr]
deserialized.sender should not be (null)
deserialized.sender should not be null
val deserializedWithoutSender = deserialized.update(sender = Actor.noSender)
deserializedWithoutSender should be(expected)
}