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

mock-consensus: 🙂 simplify test node startup #3849

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

cratelyn
Copy link
Contributor

this is a bit of polish for the mock consensus tests. Consensus provides its tower::Service implementation via tower-actor, which makes naming a TestNode<_> slightly verbose. this introduces a ConsensusService type alias, and outlines our test node startup into a shared function in common.

in the future we'll probably extend this start_test_node to allow for callers to override particular settings on the test node builder. for now, that is elided. our primary goal is to provide an ergonomic "start a test node backed by temporary storage" button to reduce test boilerplate.

@cratelyn cratelyn added C-chore Codebase maintenance that doesn't fix bugs or add features, and isn't urgent or blocking. A-mock-consensus Area: Relates to the mock consensus engine labels Feb 20, 2024
@cratelyn cratelyn added this to the Sprint 0 milestone Feb 20, 2024
@cratelyn cratelyn self-assigned this Feb 20, 2024
@cratelyn cratelyn marked this pull request as ready for review February 20, 2024 16:23
@cratelyn cratelyn merged commit 8b80366 into main Feb 20, 2024
6 checks passed
@cratelyn cratelyn deleted the katie/make-consensus-easier-to-name branch February 20, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-mock-consensus Area: Relates to the mock consensus engine C-chore Codebase maintenance that doesn't fix bugs or add features, and isn't urgent or blocking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant