forked from smpeters/net-ping
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Improve tests that need the Internet #24
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Is NO_NETWORK_TESTING used elsewhere already? I only see Perl-Toolchain-Gang/toolchain-site#3 which was never done. Oh I see. Test::RequiresInternet does it, so it's fine |
rurban
reviewed
Nov 18, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you want to fix the subject line typo. Else fine. Force push ok
rurban
approved these changes
Nov 18, 2020
Net-HTTP. Also it's an interface of Test::RequiresInternet which is used by
WWW-Mechanize, Mail-DKIM, libwww-perl, URI-Fetch etc.
|
This patch uses the addresses reserved for a documentation purpose which should be unroutable instead of just a random address.
If a host cannot resolve the host names, the tests fail like: getaddrinfo(www.google.com.,,AF_INET) failed - Temporary failure in name resolution at /builddir/build/BUILD/Net-Ping-2.74/blib/lib/Net/Ping.pm line 1925. The tests recommend setting PERL_CORE=1, but PERL_CORE has a different meaning. This patch recognizes a NO_NETWORK_TESTING environment variable to skip non-localhost tests. This is alike to Test::RequiresInternet. The patch also coerces the remaining tests to use loopback addresses instead.
Thanks, users will like it! |
toddr
added a commit
to toddr/perl
that referenced
this pull request
Oct 19, 2022
[DELTA] 2.75 2022-09-01 12:44:03 rurban Minor - Modernized the synopsis (rurban/Net-Ping#31) - Fixed a link in a comment (rurban/Net-Ping#25) META Changes - Remove some TEST_REQUIRES (rurban/Net-Ping#23) Test fixes - Support NO_NETWORK_TESTING=1 (rurban/Net-Ping#24) - Fix non-routable addresses for negative tests (rurban/Net-Ping#24)
toddr
added a commit
to toddr/perl
that referenced
this pull request
Oct 19, 2022
[DELTA] 2.75 2022-09-01 12:44:03 rurban Minor - Modernized the synopsis (rurban/Net-Ping#31) - Fixed a link in a comment (rurban/Net-Ping#25) META Changes - Remove some TEST_REQUIRES (rurban/Net-Ping#23) Test fixes - Support NO_NETWORK_TESTING=1 (rurban/Net-Ping#24) - Fix non-routable addresses for negative tests (rurban/Net-Ping#24)
toddr
added a commit
to Perl/perl5
that referenced
this pull request
Oct 19, 2022
[DELTA] 2.75 2022-09-01 12:44:03 rurban Minor - Modernized the synopsis (rurban/Net-Ping#31) - Fixed a link in a comment (rurban/Net-Ping#25) META Changes - Remove some TEST_REQUIRES (rurban/Net-Ping#23) Test fixes - Support NO_NETWORK_TESTING=1 (rurban/Net-Ping#24) - Fix non-routable addresses for negative tests (rurban/Net-Ping#24)
scottchiefbaker
pushed a commit
to scottchiefbaker/perl5
that referenced
this pull request
Nov 3, 2022
[DELTA] 2.75 2022-09-01 12:44:03 rurban Minor - Modernized the synopsis (rurban/Net-Ping#31) - Fixed a link in a comment (rurban/Net-Ping#25) META Changes - Remove some TEST_REQUIRES (rurban/Net-Ping#23) Test fixes - Support NO_NETWORK_TESTING=1 (rurban/Net-Ping#24) - Fix non-routable addresses for negative tests (rurban/Net-Ping#24)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.