Navigation Menu

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 rails4 test #1419

Merged
merged 1 commit into from Oct 28, 2019
Merged

Conversation

adamkiczula
Copy link
Contributor

This fixes issue #1409

I found the failing seed with: while rake; do :; done
Failure can be reproduced with rake TESTOPTS="--seed=42281"

The cause is that the test_external_checks test is run first, so report hasn't been called yet. The result is that Brakeman::CheckExternalCheckTest isn't loaded yet, so the defined? assertion fails. Simply moving that assertion to after calling report fixes the test.

@presidentbeef presidentbeef merged commit 25fad31 into presidentbeef:master Oct 28, 2019
@presidentbeef
Copy link
Owner

🙇‍♂️ 🙇‍♂️ 🙇‍♂️ Thank you!!

Repository owner locked and limited conversation to collaborators Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants