Skip to content
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

Extend distributed_work.peer_malicious test to fix intermittent failure #2500

Conversation

guilhermelawless
Copy link
Contributor

When all work peers reply with invalid work (malicious), distributed_work backs off for 1 second before starting again, but now with local work generation.

This test required that the fake malicious peer received the request a second time, but it's necessary to test this with local generation disabled, which this PR now does.

Should fix the reported intermittent failure.

@guilhermelawless guilhermelawless added the unit test Related to a new, changed or fixed unit test label Jan 20, 2020
@guilhermelawless guilhermelawless added this to the V21.0 milestone Jan 20, 2020
@guilhermelawless guilhermelawless self-assigned this Jan 20, 2020
Copy link
Contributor

@cryptocode cryptocode left a comment

Choose a reason for hiding this comment

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

Survived 200 iterations 👍

@guilhermelawless guilhermelawless merged commit 110b954 into nanocurrency:develop Jan 20, 2020
@guilhermelawless guilhermelawless deleted the test/distributed_work/peer_malicious-fix branch January 20, 2020 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unit test Related to a new, changed or fixed unit test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants