tests: Use mocktime for wallet encryption timeout #25878

pull achow101 wants to merge 1 commits into bitcoin:master from achow101:wallet-enc-test-mocktime changing 1 files +7 −11
  1. achow101 commented at 5:53 PM on August 19, 2022: 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

  2. tests: Use mocktime for wallet encryption timeout 02dea9a47f
  3. DrahtBot commented at 6:02 PM on August 19, 2022: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--174a7506f384e20aa4161008e828411d-->

    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.

  4. MarcoFalke commented at 6:03 PM on August 19, 2022: member

    review ACK 02dea9a47fa17e977c9de72233ebd74e913fa30a

  5. MarcoFalke commented at 6:16 PM on August 19, 2022: member

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

  6. DrahtBot added the label Tests on Aug 19, 2022
  7. vasild approved
  8. vasild commented at 4:42 AM on August 20, 2022: contributor

    ACK 02dea9a47fa17e977c9de72233ebd74e913fa30a

  9. MarcoFalke merged this on Aug 20, 2022
  10. MarcoFalke closed this on Aug 20, 2022

  11. sidhujag referenced this in commit 7031380243 on Aug 20, 2022
  12. bitcoin locked this on Aug 20, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-19 00:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me