-
Notifications
You must be signed in to change notification settings - Fork 10
Validator worker test coverage #469
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
Conversation
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've forgot about this PR, sorry about that, next time you can ping me ;)
Instead of faking the accountings we have to work with real-life scenarios, the same way that the real system will work.
So create events for those campaigns and expect a certain message & balances at the end
test_harness/src/lib.rs
Outdated
@@ -884,6 +900,396 @@ mod tests { | |||
.send() | |||
.await?) | |||
} | |||
|
|||
// Potential TODO's: Merge both test cases into one and find a way to retrieve heartbeats |
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.
You can retrieve the heartbeats using get_our_latest_msg
after running a single tick.
see #486 |
TODO's:
Maybe moveCall function through run_full_test() insteadtest_leader_and_follower_tick()
into a new file