diff --git a/src/core/Akka.Persistence.TCK/Snapshot/SnapshotStoreSpec.cs b/src/core/Akka.Persistence.TCK/Snapshot/SnapshotStoreSpec.cs index 431b541384b..bfee1e5f227 100644 --- a/src/core/Akka.Persistence.TCK/Snapshot/SnapshotStoreSpec.cs +++ b/src/core/Akka.Persistence.TCK/Snapshot/SnapshotStoreSpec.cs @@ -14,6 +14,7 @@ using Akka.Persistence.Fsm; using Akka.Persistence.TCK.Serialization; using Akka.TestKit; +using FluentAssertions; using FluentAssertions.Extensions; using Xunit; using Xunit.Abstractions; @@ -184,7 +185,7 @@ public virtual void SnapshotStore_should_load_the_most_recent_snapshot_matching_ public virtual void SnapshotStore_should_delete_a_single_snapshot_identified_by_SequenceNr_in_snapshot_metadata() { var md = Metadata[2]; - md = new SnapshotMetadata(md.PersistenceId, md.SequenceNr, Sys.Scheduler.Now.DateTime); + md = new SnapshotMetadata(md.PersistenceId, md.SequenceNr, md.Timestamp); var command = new DeleteSnapshot(md); var sub = CreateTestProbe(); @@ -195,10 +196,10 @@ public virtual void SnapshotStore_should_delete_a_single_snapshot_identified_by_ SnapshotStore.Tell(new LoadSnapshot(Pid, new SnapshotSelectionCriteria(md.SequenceNr), long.MaxValue), _senderProbe.Ref); _senderProbe.ExpectMsg(result => - result.ToSequenceNr == long.MaxValue - && result.Snapshot != null - && result.Snapshot.Metadata.Equals(Metadata[1]) - && result.Snapshot.Snapshot.ToString() == "s-2"); + result.ToSequenceNr == long.MaxValue + && result.Snapshot != null + && result.Snapshot.Metadata.Equals(Metadata[1]) + && result.Snapshot.Snapshot.ToString() == "s-2"); } // Issue #7312