-
Notifications
You must be signed in to change notification settings - Fork 220
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
Fix block_event_and_reorg_event_handling test. #3018
Conversation
Is there a better way to add empty block? |
base_layer/core/tests/mempool.rs
Outdated
@@ -754,7 +754,7 @@ fn service_request_timeout() { | |||
#[ignore = "Flaky test that needs to be fixed"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the test is passing reliably now then you can remove this #[ignore]
attribute so it can run on CI 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done. thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally working, nice one.
base_layer/core/tests/mempool.rs
Outdated
#[allow(clippy::identity_op)] | ||
fn block_event_and_reorg_event_handling() { | ||
// #flaky, this test seems to fail after submiting block B2A to bob. | ||
// #flaky, this test seems to fail after submitting block B2A to bob. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I forgot to ask to remove this comment as well!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, my spellchecker just noticed that mistake, next time I will read the comments more carefully.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries 🙃
This PR fix 3 issues that were failing: The coinbase_lock_height is 2, so we had to add one empty block to be able to process the UTXO. The TXs were discarded because their input was invalid. Solution was to move it after the processing of the block1. Removal of assert_eq, there is proper one async_assert_eventually.
Description
This PR fix 3 issues that were failing: