Refining the DeadLetterActorRef serialization test to be a bit more specific

This commit is contained in:
Viktor Klang 2011-11-01 11:31:53 +01:00
parent f427c99814
commit 2f52f43fa8

View file

@ -76,7 +76,7 @@ class SerializeSpec extends AkkaSpec {
val in = new ObjectInputStream(new ByteArrayInputStream(outbuf.toByteArray))
Serialization.app.withValue(a) {
val deadLetters = in.readObject().asInstanceOf[DeadLetterActorRef]
deadLetters must be(a.deadLetters)
(deadLetters eq a.deadLetters) must be(true)
}
}
}