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

Add unit tests of SnapshotStore #181

Merged
merged 6 commits into from
Oct 28, 2022
Merged

Conversation

xirc
Copy link
Contributor

@xirc xirc commented Oct 25, 2022

Prepares for #174

Add the following method and its unit test:

  • SnapshotStore$.persistenceId: returns a persistence ID of SnapshotStore

Add the following unit tests:

  • SnapshotStore should save the given EntitySnapshot.
  • SnapshotStore should save nothing if it has the same EntitySnapshot.
  • SnapshotStore should reply to FetchSnapshot even if it is saving an EntitySnapshot.
  • SnapshotStore should log a warning if it is saving an EntitySnapshot and receives a SaveSnapshot command.

Change the following unit tests:

  • The existing unit tests of ShardSnapshotStoreFailureSpec give a persistence ID to SnapshotTestKit for clarifying the persistence ID to fail.

@xirc xirc marked this pull request as ready for review October 25, 2022 03:13
@xirc xirc requested a review from negokaz October 25, 2022 03:13
Copy link
Contributor

@negokaz negokaz left a comment

Choose a reason for hiding this comment

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

Great! LGTM 👍

@negokaz negokaz merged commit da0458a into master Oct 28, 2022
@negokaz negokaz deleted the add-unit-tests-of-snapshot-store branch October 28, 2022 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants