test: Use proper mocktime for uptime #21164

pull MarcoFalke wants to merge 2 commits into bitcoin:master from MarcoFalke:2102-mockTimeInit changing 5 files +33 −26
  1. MarcoFalke commented at 5:16 PM on February 12, 2021: member
  2. Set startup time for uptime at the beginning of AppInitParameterInteraction
    Stop initializing nStartupTime to system time. This is needed for many
    things:
    
    * It is making it harder to assert that fuzzing only uses mocked time.
    * When using mocked time in the program arguments, nStartupTime will be
      incorrectly initialized to system time.
    facb959747
  3. test: Use mocktime to speed up test_seed_peers fa1025d338
  4. MarcoFalke added the label Tests on Feb 12, 2021
  5. jonatack commented at 5:34 PM on February 12, 2021: member

    Concept ACK, first skim of code looks pretty good.

  6. dhruv commented at 5:41 PM on February 12, 2021: member

    Whoops, I think we crossed wires and I created #21165 - happy to close it if you prefer. I was able to accomplish the faster test without any C++ changes so might be easier to review.

  7. MarcoFalke commented at 7:30 PM on February 12, 2021: member

    Ah, thanks. Closing this one.

  8. MarcoFalke closed this on Feb 12, 2021

  9. MarcoFalke deleted the branch on Feb 12, 2021
  10. DrahtBot locked this on Aug 16, 2022

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-17 06:14 UTC

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