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

Fix flaky parity whisper test #1447

Merged
merged 1 commit into from
Sep 12, 2019
Merged

Conversation

kclowes
Copy link
Collaborator

@kclowes kclowes commented Sep 5, 2019

What was wrong?

Our parity integration tests were flaking out on the shh.post method sometimes.

Related to Issue #1408

How was it fixed?

Since we don't care what comes back from parity, just that we're interfacing with it correctly, added a check for an error response, and make sure it's the correct error response. Otherwise, continue with the test as usual.

Todo:

Cute Animal Picture

Screen Shot 2019-09-05 at 11 45 09 AM

Copy link
Contributor

@Code0x58 Code0x58 left a comment

Choose a reason for hiding this comment

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

I'd be inclined to decorate the flaking tests with xfail:

@pytest.mark.xfail(strict=False, raises=ValueError)

This avoids the changes that touch more mentioned in the ssh test comments ⛳️

web3/_utils/module_testing/shh_module.py Outdated Show resolved Hide resolved
@kclowes
Copy link
Collaborator Author

kclowes commented Sep 5, 2019

Ah, I like that better. It does feel cleaner. Thanks!

web3/_utils/module_testing/shh_module.py Outdated Show resolved Hide resolved
Copy link
Contributor

@Code0x58 Code0x58 left a comment

Choose a reason for hiding this comment

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

a couple of lines to remove, then it's all good

@kclowes
Copy link
Collaborator Author

kclowes commented Sep 12, 2019

Got a verbal approval from @pipermerriam

@kclowes kclowes merged commit 808fd95 into ethereum:master Sep 12, 2019
@kclowes kclowes deleted the flaky-parity-test branch September 12, 2019 16:44
@kclowes kclowes mentioned this pull request Oct 17, 2019
1 task
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.

2 participants