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 Neutrino ban store test, don't rely on <1 second function completion time #144

Merged
merged 1 commit into from Nov 18, 2020
Merged

Conversation

johnsonjh
Copy link

No description provided.

Fixes false positive alert from Travis CI on #140
@johnsonjh johnsonjh mentioned this pull request Nov 2, 2020
@johnsonjh johnsonjh changed the title Fix Neutrino ban test, don't require 1 second time Fix Neutrino ban test, don't rely on <1 second function completion Nov 3, 2020
@johnsonjh johnsonjh changed the title Fix Neutrino ban test, don't rely on <1 second function completion Fix Neutrino ban store test, don't rely on <1 second function completion time Nov 3, 2020
@johnsonjh
Copy link
Author

Only downside to this change is it makes the test take a minimum of 16s - but Travis has taken up to 11s to complete this test and obviously fails it each time, so 16s seems safe.

I'll investigate if there is a proper way to do this, such as faking the time and not relying on wall-clock timing.

@cjdelisle cjdelisle merged commit 5212e2e into pkt-cash:develop Nov 18, 2020
@johnsonjh johnsonjh deleted the faulty-neutrino-ban-test branch December 28, 2020 23:53
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