Skip to content

Conversation

@danimhr
Copy link
Contributor

@danimhr danimhr commented Jun 18, 2025

This PR aims to add tests for Pyth quorum

@vercel
Copy link

vercel bot commented Jun 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 9:21am
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 9:21am
developer-hub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 9:21am
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 9:21am
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 9:21am
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 9:21am
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 9:21am
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 9:21am

Copy link

Copilot AI left a 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 tests module in server.rs with a get_state helper

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 implement Default or a builder for State/StateInner to reduce boilerplate in tests and make future updates easier.
    pub fn get_state(

Copy link
Collaborator

@ali-behjati ali-behjati left a comment

Choose a reason for hiding this comment

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

Nice!

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