-
Notifications
You must be signed in to change notification settings - Fork 18
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
Integration testing for round restart and multiple rounds #4
Conversation
kellpossible
commented
Jun 13, 2021
•
edited
Loading
edited
- Enable testing for changes in Round restart AleoNet/aleo-setup#288, including multiple rounds and having a contributor start part way though a round.
- Remove redundant command line options.
src/waiter.rs
Outdated
/// Listen to messages from `rx`, and remove equivalent message | ||
/// from `expected_messages` until `expected_messages` is empty. | ||
fn listen<S>( | ||
mut expected_messages: Vec<T>, |
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.
this could be refactored, I'm thinking of maybe having some kind of generic waiter with an accumulator and closure that runs over it, and this listen would just be a preset version of that.
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.
The number of contributions waiter for each contributor_starts could perhaps be implemented with this.
environment: development, | ||
round_timout: Some(18000), | ||
timout: Some(18000), |
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.
I guess it's "time"