Skip to content

tests: Use mocktime for wallet encryption timeout - #25878

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
achow101:wallet-enc-test-mocktime
Aug 20, 2022
Merged

maflcko merged 1 commit into
bitcoin:masterfrom
achow101:wallet-enc-test-mocktime

Conversation

@achow101

Copy link
Copy Markdown
Member

The intermittent wallet_encryption.py failures are related to differences in time between python and std::chrono. We can avoid this entirely by using mocktime. This also allows us to test for the exact unlocking time rather than that it is greater than expected.

Fixes #25482

@DrahtBot

Copy link
Copy Markdown
Contributor

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #25750 (test: Temporarily work around Windows bug in walletpassphrase by MarcoFalke)
  • #25021 (test: fix intermittent wallet_encryption failures on win64 task by jonatack)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@maflcko

maflcko commented Aug 19, 2022

Copy link
Copy Markdown
Member

review ACK 02dea9a

@maflcko

maflcko commented Aug 19, 2022

Copy link
Copy Markdown
Member

To clarify, this is more of a workaround than a fix for the underlying chrono bug

@DrahtBot DrahtBot added the Tests label Aug 19, 2022

@vasild vasild left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK 02dea9a

@maflcko
maflcko merged commit c73c8d5 into bitcoin:master Aug 20, 2022
@bitcoin bitcoin locked and limited conversation to collaborators Aug 20, 2023
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.

qa: Intermittent failure in wallet_encryption.py --descriptors

4 participants