Add test to demonstrate the failure scenario#1999
Add test to demonstrate the failure scenario#1999dmitry-markin merged 5 commits intoparitytech:masterfrom
Conversation
dmitry-markin
left a comment
There was a problem hiding this comment.
Is it possible to modify the test so that it's testing not the failure scenario but the expected behavior? E.g., if we remove [should_panic] and the test passes, that means that we fixed the bug?
yes, if the issue is resolved, two changes would be needed:
|
|
@dmitry-markin Addressed comments, please merge if looks good, thanks |
Looks good to me, but still need one more approving review to be able to merge. |
|
The CI pipeline was cancelled due to failure one of the required jobs. |
|
bot help |
|
Here's a link to docs |
The change adds a test to show the failure scenario that caused paritytech#1812 to be rolled back (more context: paritytech#493 (comment)) Summary of the scenario: 1. Node has finished downloading up to block 1000 from the peers, from the canonical chain. 2. Peers are undergoing re-org around this time. One of the peers has switched to a non-canonical chain, announces block 1001 from that chain 3. Node downloads 1001 from the peer, and tries to import which would fail (as we don't have the parent block 1000 from the other chain) --------- Co-authored-by: Dmitry Markin <dmitry@markin.tech>
The change adds a test to show the failure scenario that caused #1812 to be rolled back (more context: #493 (comment))
Summary of the scenario: