-
Notifications
You must be signed in to change notification settings - Fork 302
Add tests for quorum #2791
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 tests for quorum #2791
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds scaffolding for unit tests in the quorum server and updates the crate version.
- Bumps crate version to 0.1.3
- Introduces a new
testsmodule inserver.rswith aget_statehelper
Reviewed Changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| apps/quorum/src/server.rs | Adds #[cfg(test)] mod tests with a get_state helper for constructing State |
| apps/quorum/Cargo.toml | Updates version from 0.1.2 to 0.1.3 |
Comments suppressed due to low confidence (2)
apps/quorum/src/server.rs:133
- The test module currently only defines a helper (
get_state) but lacks any actual test cases. Consider adding unit tests that leverage this helper to validate core quorum behaviors.
pub mod tests {
apps/quorum/src/server.rs:136
- [nitpick] This helper manually constructs
StateInner. You might implementDefaultor a builder forState/StateInnerto reduce boilerplate in tests and make future updates easier.
pub fn get_state(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
This PR aims to add tests for Pyth quorum