Skip to content

Commit

Permalink
Akka.Persistence.TCK.JournalSerializationSpec: made error messages in #…
Browse files Browse the repository at this point in the history
…3964 clearer (#4008)
  • Loading branch information
Aaronontheweb committed Oct 28, 2019
1 parent 7966624 commit 73e9719
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ public virtual void Journal_should_serialize_Persistent_with_EventAdapter_manife
probe.ExpectMsg<WriteMessageSuccess>(m => m.ActorInstanceId == ActorInstanceId && m.Persistent.PersistenceId == Pid);

Journal.Tell(new ReplayMessages(0, long.MaxValue, long.MaxValue, Pid, probe.Ref));
probe.ExpectMsg<ReplayedMessage>(s => s.Persistent.PersistenceId == persistentEvent.PersistenceId
&& s.Persistent.SequenceNr == persistentEvent.SequenceNr
&& s.Persistent.Payload.AsInstanceOf<TestJournal.MyPayload3>().Data.Equals(".item1.")
&& s.Persistent.Manifest == "First-Manifest");
var replayed = probe.ExpectMsg<ReplayedMessage>();
Assertions.AssertEqual(persistentEvent.PersistenceId, replayed.Persistent.PersistenceId);
Assertions.AssertEqual(persistentEvent.SequenceNr, replayed.Persistent.SequenceNr);
Assertions.AssertEqual(persistentEvent.Manifest, replayed.Persistent.Manifest);
Assertions.AssertEqual(".item1.", replayed.Persistent.Payload.AsInstanceOf<TestJournal.MyPayload3>().Data);
probe.ExpectMsg<RecoverySuccess>();
}

Expand Down

0 comments on commit 73e9719

Please sign in to comment.