From 16c6a1b7acca3d9f3b3a4c19d1989ec0fbf5043f Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 26 Sep 2008 14:41:34 +0000 Subject: [PATCH] Correct testing host. Clearer diagnostics. --- t/16-packages.t | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/t/16-packages.t b/t/16-packages.t index 6c09bcf..76d5b33 100644 --- a/t/16-packages.t +++ b/t/16-packages.t @@ -1,4 +1,4 @@ -# $Id: 16-packages.t,v 1.12 2006-04-12 12:30:09 mike Exp $ +# $Id: 16-packages.t,v 1.13 2008-09-26 14:41:34 mike Exp $ # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 16-packages.t' @@ -20,7 +20,7 @@ BEGIN { use_ok('Net::Z3950::ZOOM') }; # We will create, and destroy, a new database with a random name -my $host = "test.indexdata.com:2118"; +my $host = "z3950.indexdata.com:2100"; my $dbname = join("", map { chr(ord("a") + int(rand(26))) } 1..10); # Connect anonymously, and expect this to fail @@ -134,7 +134,8 @@ sub dropdb { my($errcode, $errmsg, $addinfo) = (undef, "dummy", "dummy"); $errcode = Net::Z3950::ZOOM::connection_error($conn, $errmsg, $addinfo); ok($errcode == $expected_error, - "database drop '$dbname'" . ($errcode ? " refused $errcode" : "")); + ("database drop '$dbname'" . ($errcode ? " refused $errcode" : "") . + ($expected_error ? " expected $expected_error but succeeded" : ""))); Net::Z3950::ZOOM::package_destroy($p); ok(1, "destroyed dropdb package"); -- 1.7.10.4