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 multiple quorums in synthetic client test #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ian-shim
Copy link
Contributor

@ian-shim ian-shim commented Mar 2, 2024

Why are these changes needed?

Make synthetic client test disperse to multiple quorums with randomized security parameters.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@ian-shim ian-shim marked this pull request as ready for review March 2, 2024 01:44
Copy link
Contributor

@siddimore siddimore left a comment

Choose a reason for hiding this comment

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

lg

numQuorums := rand.Intn(maxNumQuorums) + 1
securityParams := make([]*core.SecurityParam, numQuorums)
for i := 0; i < numQuorums; i++ {
quorumThreshold := rand.Intn(25) + 50 // number between 50 and 75
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: may be add comment on choice of above magic numbers

@ian-shim ian-shim force-pushed the synthetic-client-test-multiquorum branch from 8a15061 to 0147bc0 Compare March 18, 2024 23:10
@ian-shim ian-shim force-pushed the synthetic-client-test-multiquorum branch from 0147bc0 to a948007 Compare March 18, 2024 23:11
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