You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #6751: test: wait delays for IS, CL just 0.05s
1a5cee6 test: instead bumping time per 1 second bump straightly 30 seconds in feature_llmq_is_retroactive (Konstantin Akimov)
0e9f7fb test: move helper wait_for_tx from test_framework to feature_llmq_is_retroactive (Konstantin Akimov)
71ef10a test: fix intermittent failures in p2p_instantsend.py and others (Konstantin Akimov)
067aa25 test: use default delay 0.05 for waiter of chainlock and chainlocked blocks (Konstantin Akimov)
Pull request description:
## Issue being fixed or feature implemented
Dash Core sends transactions after random delay for privacy reason.
tx_relay->m_next_inv_send_time = GetExponentialRand(current_time, OUTBOUND_INVENTORY_BROADCAST_INTERVAL)
This expential random delay could be long as 2s * 10 = 20 seconds or even longer sometimes.
## What was done?
Prior work: #6631
To be sure that helper wait_for_instantsend is reliable need to bump mocktime for 20+ second, or even better 30 seconds.
It fixes potential instability in functional tests and make them more deterministic and faster to run.
Decreased delay for ChainLocks also.
## How Has This Been Tested?
Run functional tests several times; no new failures are noticed.
Minor performance improvement for functional tests that use `wait_for_instantlock`:
```
TEST | STATUS | DURATION
feature_asset_locks.py | ✓ Passed | 114 s
feature_llmq_is_cl_conflicts.py | ✓ Passed | 47 s
feature_llmq_is_retroactive.py | ✓ Passed | 135 s
feature_llmq_singlenode.py | ✓ Passed | 56 s
feature_notifications.py | ✓ Passed | 74 s
interface_zmq_dash.py --legacy-wallet | ✓ Passed | 45 s
p2p_instantsend.py | ✓ Passed | 49 s
rpc_verifyislock.py | ✓ Passed | 39 s
ALL | ✓ Passed | 559 s (accumulated)
Runtime: 135 s
--->
TEST | STATUS | DURATION
feature_asset_locks.py | ✓ Passed | 113 s
feature_llmq_is_cl_conflicts.py | ✓ Passed | 33 s
feature_llmq_is_retroactive.py | ✓ Passed | 126 s
feature_llmq_singlenode.py | ✓ Passed | 37 s
feature_notifications.py | ✓ Passed | 29 s
interface_zmq_dash.py --legacy-wallet | ✓ Passed | 41 s
p2p_instantsend.py | ✓ Passed | 44 s
rpc_verifyislock.py | ✓ Passed | 37 s
ALL | ✓ Passed | 460 s (accumulated)
Runtime: 126 s
```
## Breaking Changes
N/A
## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone
ACKs for top commit:
UdjinM6:
utACK 1a5cee6
PastaPastaPasta:
utACK 1a5cee6
Tree-SHA512: c8b2066513f5496eac6ad98a8c6891acd4ad05820ad7339f657d695be114370cf0b4b7250f5d5077f1ec88b1baac658f01386c48190115163dd9f0e49941fd9f
0 commit comments