X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=t%2F1-Net-Z3950-ZOOM.t;h=1e85894cd1f7ec7c3ee62409626551e7375f4ae6;hb=e19515ab18d8e5002b39536d9d27ed7243eb4e64;hp=27c479e514ed72509c70e4e4f571b69a78cc91cd;hpb=14fadf61b05c6f5684a667eb07ce9b3e2cf6708c;p=ZOOM-Perl-moved-to-github.git diff --git a/t/1-Net-Z3950-ZOOM.t b/t/1-Net-Z3950-ZOOM.t index 27c479e..1e85894 100644 --- a/t/1-Net-Z3950-ZOOM.t +++ b/t/1-Net-Z3950-ZOOM.t @@ -20,8 +20,8 @@ my $host = "no.such.host"; my $conn = Net::Z3950::ZOOM::connection_new($host, 0); $errcode = Net::Z3950::ZOOM::connection_error($conn, $errmsg, $addinfo); # For some reason, Red Hat signals this as a TIMEOUT rather than a CONNECT -ok(($errcode == Net::Z3950::ZOOM::ERROR_CONNECT || - $errcode == Net::Z3950::ZOOM::ERROR_TIMEOUT) && $addinfo eq $host, +ok(($errcode == Net::Z3950::ZOOM::ERROR_CONNECT && $addinfo eq $host) || + ($errcode == Net::Z3950::ZOOM::ERROR_TIMEOUT && $addinfo eq ""), "connection to non-existent host '$host' fails: errcode=$errcode, addinfo=$addinfo"); $host = "z3950.indexdata.com/gils";