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

Add test to beacon node fallback feature #6568

Open
wants to merge 110 commits into
base: unstable
Choose a base branch
from

Conversation

chong-he
Copy link
Member

@chong-he chong-he commented Nov 6, 2024

Add test to beacon node fallback using mockito crate: https://crates.io/crates/mockito to create mock beacon nodes. The tests include:

  • testing the update_all_candidates function in update_all_candidates_should_update_sync_status
  • testing the broadcast function in broadcast_should_send_to_all_bns
  • testing the first_success function in first_success_should_try_nodes_in_order

A majority part of the code was written by @jimmygchen, thank you Jimmy for the help and guidance, I learn a lot along the way.

@chong-he chong-he marked this pull request as ready for review November 20, 2024 11:45
@jimmygchen jimmygchen added ready-for-review The code is ready for review and removed work-in-progress PR is a work-in-progress labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review The code is ready for review test improvement Improve tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants