Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2916: [Test] speed un tiertwo_governance_sync_basic
471cae3 Do not sleep after staking and after sending pings (ale) Pull request description: `tiertwo_governance_sync_basic` is by far the slowest test that we have. Profiling showed that most of the time was spent in the function stake() which slept for a total of 2 seconds in each call. Those 2 seconds sleep were actually useless and have been removed. With this simple change the total running time of the test on my machine dropped from `15` minutes to only `6` minutes. To prove that indeed sleeping was useless I tried to run the same test in parallel 15 times, and it never failed, see here: https://github.com/panleone/PIVX/actions/runs/8420343441 ACKs for top commit: 471cae3 Duddino: utACK 471cae3 Liquid369: tACK 471cae3 Fuzzbawls: ACK 471cae3 Tree-SHA512: 6b00a18c7edd6dffaf9c5df3f53c8481c4312f7d8a63819010289c17b5ab7715aeafb901c8da885515fa59a093ab6e101c572972823ac2ca5e5c53139921f063
- Loading branch information