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

Election: add unit tests for core algorithm #5898

Open
baumanj opened this issue Nov 29, 2018 · 2 comments
Open

Election: add unit tests for core algorithm #5898

baumanj opened this issue Nov 29, 2018 · 2 comments
Labels
Focus:Gossip Protocol Tasks related to fundamental gossip algorithm behavior Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Stale Type:Stability

Comments

@baumanj
Copy link
Contributor

baumanj commented Nov 29, 2018

Exhaustive testing using end-to-end or integration tests is time and resource intensive. However, the core elections algorithm is contained in just a handful of functions:

Creating testable, purely functional interfaces (as with elections_to_restart_impl) can allow for the creation of efficient tests of a wide variety of scenarios to help validate the algorithm in a variety of scenarios that are hard to achieve with other types of testing.

@stale
Copy link

stale bot commented Apr 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

@stale stale bot added the Stale label Apr 2, 2020
@christophermaier christophermaier added Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component and removed A-supervisor labels Jul 24, 2020
@stale stale bot removed the Stale label Jul 24, 2020
@stale
Copy link

stale bot commented Aug 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

@stale stale bot added the Stale label Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus:Gossip Protocol Tasks related to fundamental gossip algorithm behavior Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Stale Type:Stability
Projects
None yet
Development

No branches or pull requests

4 participants