Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed Akka.Persistence.Tck snapshot load specs #7320

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Aug 16, 2024

Changes

Left-over bugs from #7313

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

Copy link
Member Author

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Detailed my changes

@@ -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);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basic issue with the test before was that we were using the wrong timestamp so Metadata[2]; never got deleted because now timestamps matter. Adjusted the SnapshotMetadata to use the same timestamp as the targeted snapshot so the test assertions pass without being changed.

Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Arkatufus Arkatufus merged commit 96c6a60 into akkadotnet:dev Aug 16, 2024
12 checks passed
@Aaronontheweb Aaronontheweb deleted the fix-akkapersistence-tests branch August 16, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants