Bug 1489703 - perl-DBD-Multi-1.01-1.fc28 FTBFS: t/unavailable-server.t fails: DBI connect('dbname=fake;host=192.0.2.1','fakeuser',...) failed: could not connect to server: Network is unreachable
Summary: perl-DBD-Multi-1.01-1.fc28 FTBFS: t/unavailable-server.t fails: DBI connect('...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-DBD-Multi
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-08 07:45 UTC by Petr Pisar
Modified: 2017-11-10 10:59 UTC (History)
3 users (show)

Fixed In Version: perl-DBD-Multi-1.01-2.fc28
Clone Of:
Environment:
Last Closed: 2017-11-10 10:59:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github dwright DBD-Multi issues 2 0 None None None 2017-09-08 07:45:38 UTC

Description Petr Pisar 2017-09-08 07:45:38 UTC
perl-DBD-Multi-1.01-1.fc28 fails to build because a test fails on properly configured network like this:

#   Failed test 'Direct connection timed out'
#   at t/unavailable-server.t line 45.
# Pausing up to 10 seconds to test timeout...
DBI connect('dbname=fake;host=192.0.2.1','fakeuser',...) failed: could not connect to server: Network is unreachable
	Is the server running on host "192.0.2.1" and accepting
	TCP/IP connections on port 5432? at /builddir/build/BUILD/DBD-Multi-1.01/blib/lib/DBD/Multi.pm line 441.
DBI connect('dbname=fake;host=192.0.2.1','fakeuser',...) failed: could not connect to server: Network is unreachable
	Is the server running on host "192.0.2.1" and accepting
	TCP/IP connections on port 5432? at /builddir/build/BUILD/DBD-Multi-1.01/blib/lib/DBD/Multi.pm line 441.
DBI connect('dbname=fake;host=192.0.2.1','fakeuser',...) failed: could not connect to server: Network is unreachable
	Is the server running on host "192.0.2.1" and accepting
	TCP/IP connections on port 5432? at /builddir/build/BUILD/DBD-Multi-1.01/blib/lib/DBD/Multi.pm line 441.
# Looks like you failed 1 test of 7.
t/unavailable-server.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed

This is because 92.0.2.0/24 destination is refused by a router with an ICMP error message and the test does not expect it.

Comment 1 Petr Pisar 2017-11-10 10:59:24 UTC
I patched the test to use a local TCP server instead that is always reachable.


Note You need to log in before you can comment on or make changes to this bug.