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

test(block_production): Add tests to block_production_task method #478

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GMKrieger
Copy link

Pull Request type

Please add the labels corresponding to the type of changes your PR introduces:

  • Testing

What is the current behavior?

Resolves: #NA

The block production tests currently only test block sealing when starting a new service.

What is the new behavior?

This PR aims to add tests on the block_production_task method and related methods to thoroughly test the code.

Does this introduce a breaking change?

No.

Other information

The testing format is based on #468. All feedback is welcome!

@GMKrieger GMKrieger added the testing Related to tests and test infrastructure label Jan 24, 2025
@GMKrieger GMKrieger self-assigned this Jan 24, 2025
@GMKrieger GMKrieger force-pushed the test/block-production-tests branch 3 times, most recently from 6b9d8ec to da627d1 Compare January 30, 2025 20:48
@GMKrieger GMKrieger marked this pull request as ready for review January 30, 2025 20:48
crates/madara/client/block_production/src/lib.rs Outdated Show resolved Hide resolved
crates/madara/client/block_production/src/lib.rs Outdated Show resolved Hide resolved
crates/madara/client/block_production/src/lib.rs Outdated Show resolved Hide resolved
crates/madara/client/block_production/src/lib.rs Outdated Show resolved Hide resolved
crates/madara/client/block_production/src/lib.rs Outdated Show resolved Hide resolved
@GMKrieger GMKrieger force-pushed the test/block-production-tests branch 3 times, most recently from 4b05607 to 695e7de Compare February 5, 2025 19:18
Copy link
Collaborator

@Trantorian1 Trantorian1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few nitpicks, otherwise all seems good.

crates/madara/client/block_production/src/lib.rs Outdated Show resolved Hide resolved
crates/madara/client/block_production/src/lib.rs Outdated Show resolved Hide resolved
crates/madara/client/block_production/src/lib.rs Outdated Show resolved Hide resolved
crates/madara/client/block_production/src/lib.rs Outdated Show resolved Hide resolved
@GMKrieger GMKrieger force-pushed the test/block-production-tests branch from 695e7de to 1d2c093 Compare February 10, 2025 14:12
@GMKrieger GMKrieger force-pushed the test/block-production-tests branch from 1d2c093 to 3a371cf Compare February 10, 2025 16:03
@Trantorian1
Copy link
Collaborator

Trantorian1 commented Feb 14, 2025

@GMKrieger Could you please avoid force-pushing changes to a PR after a review has occurred? This makes it harder to review new changes since github cannot display "changes since last review".

Copy link
Collaborator

@Trantorian1 Trantorian1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Related to tests and test infrastructure
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

2 participants