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

test: add raft test cases #4

Merged
merged 7 commits into from
Jul 12, 2024
Merged

test: add raft test cases #4

merged 7 commits into from
Jul 12, 2024

Conversation

ASjet
Copy link
Owner

@ASjet ASjet commented Jul 12, 2024

Refactor

  • Extract init logic for reuse in tests

Integrate Test

  • Leader election agreement among 3 peers

Unit Test

  • Reject requests with lower term
  • Follower state RequestVote RPC logic
  • Follower state AppendEntries RPC logic

@ASjet ASjet merged commit 6a5c6f0 into main Jul 12, 2024
1 check passed
@ASjet ASjet deleted the test/election branch July 12, 2024 14:46
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.

1 participant