Skip to content

test: fixes flaky wallet_import_rescan functional test#29350

Closed
sr-gi wants to merge 1 commit intobitcoin:masterfrom
sr-gi:2024-01-legacy-wallet-test
Closed

test: fixes flaky wallet_import_rescan functional test#29350
sr-gi wants to merge 1 commit intobitcoin:masterfrom
sr-gi:2024-01-legacy-wallet-test

Conversation

@sr-gi
Copy link
Copy Markdown
Member

@sr-gi sr-gi commented Jan 30, 2024

wallet_import_rescan is, potentially, not rounding values used for sendtoaddress in one of the test cases. Under normal conditions, the value is randomly picked and rounded to 8 decimal positions, however, for this specific case the value is limited to a maximum value that is not properly rounded. If that value happens to be picked, the test will fail.

I noticed this in a completely unrelated PR where the test failed: https://cirrus-ci.com/task/5467779164274688?logs=ci#L2684

wallet_import_rescan is, potentially, not rounding values used for `sendtoaddress`
in one of the tests cases. Under normal conditions, the value is randomly picked and rounded
to 8 decimal positions, however, for this specific case the value is limited to a maximum value that
is not properly rounded. If that value happens to be picked, the test will fail.
@DrahtBot
Copy link
Copy Markdown
Contributor

DrahtBot commented Jan 30, 2024

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

@DrahtBot DrahtBot added the Tests label Jan 30, 2024
Copy link
Copy Markdown
Member

@furszy furszy left a comment

Choose a reason for hiding this comment

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

See #29343.

Comment thread test/functional/wallet_import_rescan.py
@sr-gi
Copy link
Copy Markdown
Member Author

sr-gi commented Jan 30, 2024

See #29343.

Ups, I missed that. Closing

@sr-gi sr-gi closed this Jan 30, 2024
@bitcoin bitcoin deleted a comment from Wwwwwwuuuuu Jan 30, 2024
@bitcoin bitcoin locked and limited conversation to collaborators Jan 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants