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

Bad testplan if network does not work #5

Open
ppisar opened this issue Jun 8, 2015 · 1 comment
Open

Bad testplan if network does not work #5

ppisar opened this issue Jun 8, 2015 · 1 comment

Comments

@ppisar
Copy link

ppisar commented Jun 8, 2015

There is a bug in t/dns.t test plan. If the Internet is unreachable, the t/dns.t will fail like this:

$ prove -v -b t/
t/dns.t ..
1..11
ok 1 - An object of class 'AnyEvent::CacheDNS' isa 'AnyEvent::CacheDNS'
ok 2 # skip DNS lookup for bee.meon.eu failed
ok 3 - DNS cache was used
ok 4 - DNS cache has a sinle host
ok 5 - Second DNS lookup failed, just as the first one
ok 6 - Cache has no record for host
ok 7 # skip DNS lookup for bee.meon.eu failed
ok 8 # skip DNS lookup for bee.meon.eu failed
ok 9 # skip DNS lookup for bee.meon.eu failed
# Looks like you planned 11 tests but ran 9.
@karenetheridge
Copy link

I have also encountered this. Would it be possible to make the network tests optional, perhaps with Test::RequiresInternet?

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

No branches or pull requests

2 participants