Skip to content

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

Closed
wants to merge 16 commits into from

Conversation

simzzz
Copy link
Contributor

@simzzz simzzz commented Jan 25, 2022

TODO's:

  • Fix the last test case which is failing
  • Maybe move test_leader_and_follower_tick() into a new file Call function through run_full_test() instead
  • Compare the PropagationResult in the last test case

@simzzz simzzz changed the base branch from master to aip-61-adex-v5 January 25, 2022 13:14
@simzzz simzzz requested a review from elpiel January 25, 2022 13:17
@simzzz simzzz marked this pull request as ready for review January 28, 2022 16:05
Copy link
Member

@elpiel elpiel left a 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

@@ -884,6 +900,396 @@ mod tests {
.send()
.await?)
}

// Potential TODO's: Merge both test cases into one and find a way to retrieve heartbeats
Copy link
Member

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.

@elpiel
Copy link
Member

elpiel commented Apr 14, 2022

see #486

@elpiel elpiel closed this Apr 14, 2022
@elpiel elpiel deleted the validator-worker-test-coverage branch June 20, 2022 12:10
@elpiel elpiel restored the validator-worker-test-coverage branch June 20, 2022 12:10
@elpiel elpiel deleted the validator-worker-test-coverage branch June 20, 2022 12:10
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