Skip to content

Conversation

dhruv
Copy link
Contributor

@dhruv dhruv commented Feb 12, 2021

The test now takes less than 5 seconds instead of more than 2 minutes

Further context: https://github.com/bitcoin/bitcoin/pull/19884/files#r575336503

Before:

2021-02-12T17:22:25.980000Z TestFramework (INFO): Test seed peers, this will take about 2 minutes
2021-02-12T17:24:30.472000Z TestFramework (INFO): Test -networkactive option

After:

2021-02-12T17:33:39.224000Z TestFramework (INFO): Test seed peers
2021-02-12T17:33:43.139000Z TestFramework (INFO): Test -networkactive option

@dhruv
Copy link
Contributor Author

dhruv commented Feb 12, 2021

Request #19884 reviewers @LarryRuane @laanwj @jonatack @MarcoFalke to take a look

@DrahtBot DrahtBot added the P2P label Feb 12, 2021
@LarryRuane
Copy link
Contributor

Code review, tested functional test (replaced "65" seconds mock delay with "55" and verified the test fails as expected),
ACK e9c037b

@maflcko maflcko merged commit bf3189e into bitcoin:master Feb 12, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 13, 2021
d4187e4 [test] Use mocktime in test_seed_peers() (Dhruv Mehta)
015637d [refactor] Correct log message in net.cpp (Dhruv Mehta)

Pull request description:

  The test now takes less than 5 seconds instead of more than 2 minutes

  Further context: https://github.com/bitcoin/bitcoin/pull/19884/files#r575336503

  Before:
  ```
  2021-02-12T17:22:25.980000Z TestFramework (INFO): Test seed peers, this will take about 2 minutes
  2021-02-12T17:24:30.472000Z TestFramework (INFO): Test -networkactive option
  ```

  After:
  ```
  2021-02-12T17:33:39.224000Z TestFramework (INFO): Test seed peers
  2021-02-12T17:33:43.139000Z TestFramework (INFO): Test -networkactive option
  ```

Top commit has no ACKs.

Tree-SHA512: 6d8df7d4433c96268694577e4c10a346785e076d45fa220091875e55def200100e7b827fac2a1f7853a2c2c39e9661e06288dca8c645da9e13d4318a4ff2172e
@laanwj
Copy link
Member

laanwj commented Feb 14, 2021

Posthumous ACK, thanks!

Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jan 27, 2022
Summary:
```
The test now takes less than 5 seconds instead of more than 2 minutes
```

Backport of [[bitcoin/bitcoin#21165 | core#21165]].

Depends on D10908.

Test Plan:
  ./test/functional/test_runner.py feature_config_args

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D10909
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
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.

5 participants