Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Oct 23, 2020

Pls see individual commits

@UdjinM6 UdjinM6 force-pushed the fix_simplepose_test branch 3 times, most recently from 099a839 to 24d3698 Compare October 28, 2020 19:03
@UdjinM6 UdjinM6 marked this pull request as ready for review October 28, 2020 19:04
@UdjinM6 UdjinM6 added this to the 17 milestone Oct 28, 2020
@UdjinM6 UdjinM6 force-pushed the fix_simplepose_test branch from 24d3698 to 3e2efb7 Compare November 10, 2020 08:36
@PastaPastaPasta
Copy link
Member

Restarting tests again on CI. If they pass, then I think this PR is probably good to go

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6 UdjinM6 requested a review from xdustinface November 18, 2020 10:56
Copy link

@xdustinface xdustinface left a 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.

@UdjinM6 UdjinM6 changed the title Fix feature_llmq_simplepose.py Fix feature_llmq_simplepose.py and feature_llmq_signing.py tests Nov 19, 2020
@UdjinM6 UdjinM6 changed the title Fix feature_llmq_simplepose.py and feature_llmq_signing.py tests tests: Fix feature_llmq_simplepose.py and feature_llmq_signing.py Nov 19, 2020
@UdjinM6 UdjinM6 merged commit ac6878f into dashpay:develop Nov 19, 2020
@UdjinM6 UdjinM6 deleted the fix_simplepose_test branch November 26, 2020 13:26
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 12, 2022
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants