-
Notifications
You must be signed in to change notification settings - Fork 1.2k
tests: Fix feature_llmq_simplepose.py and feature_llmq_signing.py
#3781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
099a839 to
24d3698
Compare
…ature_llmq_simplepose.py Bumping `50 * 60 + 1` should be enough, see https://github.com/dashpay/dash/blob/master/src/llmq/quorums_utils.cpp#L218-L222. Bumping `60 * 60 + 1` interferes with mnsync reset, see https://github.com/dashpay/dash/blob/master/src/masternode/masternode-sync.cpp#L112-L119.
…d" sets Needed for wait_for_masternode_probes in mine_quorum. Also, refactor and fix test_banning while at it.
24d3698 to
3e2efb7
Compare
|
Restarting tests again on CI. If they pass, then I think this PR is probably good to go |
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
xdustinface
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
nit: Title only refers to feature_llmq_simplepose.py but feature_llmq_signing.py is also affected here.
feature_llmq_simplepose.pyfeature_llmq_simplepose.py and feature_llmq_signing.py tests
feature_llmq_simplepose.py and feature_llmq_signing.py testsfeature_llmq_simplepose.py and feature_llmq_signing.py
…dashpay#3781) * tests: Use lower mocktime bump value to reset masternode probes in feature_llmq_simplepose.py Bumping `50 * 60 + 1` should be enough, see https://github.com/dashpay/dash/blob/master/src/llmq/quorums_utils.cpp#L218-L222. Bumping `60 * 60 + 1` interferes with mnsync reset, see https://github.com/dashpay/dash/blob/master/src/masternode/masternode-sync.cpp#L112-L119. * Fix expected connection count in llmq-signing.py and llmq-simplepose.py * Sleep a couple of seconds to let mn sync tick to happen * Move helper functions out of run_test * Let helper functions return expect_contribution_to_fail * No need to check for "punished" state in test_banning * Split mninfos in test_banning and mine_quorum into "online" and "valid" sets Needed for wait_for_masternode_probes in mine_quorum. Also, refactor and fix test_banning while at it.
Pls see individual commits