test: fix bumpfee 'spend_one_input' occasional failure #27471
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CI test failure, in master: https://cirrus-ci.com/task/5975232842825728.
In #27469 https://cirrus-ci.com/task/6452468402356224
Most of the subtests in
wallet_bumpfee.py
expect to find spendable UTXOs of 0.001 btc in the rbf wallet. They use thespend_one_input()
method which fails if none of them exist.The sporadic failure comes from the recently added
test_feerate_checks_replaced_outputs
subtest that can spend all them. Leaving the next subtests with no 0.001 UTXOs to spend.To solve it, this PR moves the recently added case into a "context independent subtests" section.
Which is placed at the end to not affect other cases.