-
Notifications
You must be signed in to change notification settings - Fork 86
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
Some tests rely on a local DNS setup #107
Comments
@lucaskanashiro I ended up stubbing the # rails_helper.rb
RSpec.configure do |config|
config.before do
allow_any_instance_of(MxValidator).to receive(:validate_each) { true }
end
end |
Yes you are right. It might be better to have a either a dnsmasq or a Ruby name server setup for mocking our tests. |
@hallelujah We can also close this issue after #125 😉 |
Closing as solved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some tests are failing when they are executed in a sandbox environment because they try to perform some MX records lookup which requires access to some kind of DNS setup. I faced this issue while trying to build the Debian package in the Ubuntu infrastructure, the failing tests are (full build log here):
As you can see all of them are related to MX record and the lookup needs to succeed (the other tests, which expect failures, pass). Maybe find a way to mock those MX records lookup and make the tests self contained is a good move.
The text was updated successfully, but these errors were encountered: