test: make assumeUTXO test capture the expected fatal error - #28050
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
The test is exercising the error, so it can capture it before the test framework displays it on the console as an unforeseen fatal error.
56a1ecb to
3e8bf2e
Compare
There was a problem hiding this comment.
Updated per feedback, thanks @MarcoFalke.
- Moved
DebugLogHelperusage toASSERT_DEBUG_LOG. - Added reproduction steps to the PR description.
|
Also it may be good to name the commit that introduced the bug. Otherwise it will be harder for reviewers to see if there was a bug in that commit or if the change was intentional. Also, reviewers will be missing context. |
Ok. It was introduced with the test 87a1108. The test is exercising a specific fatal error (checking that is being triggered), and doing so it makes the node call |
|
Are you sure, because locally I don't see it in 25.0: |
Ok good, found the commit. 6eb33bd introduced it. It removed the |
|
cc @TheCharlatan then. Thanks @MarcoFalke. |
|
lgtm ACK 3e8bf2e |
The test is exercising the error, so it can capture it before the
test framework displays it on the console as an unforeseen
fatal error.
It is odd to observe a fatal error after executing the complete
test suite and seeing it pass successfully.
Reproduction Steps:
Run the unit test suite. A long AssumeUTXO fatal error will be
printed even when all tests pass successfully.