-# $Id: 29-events.t,v 1.1 2006-04-12 12:16:45 mike Exp $
-
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl 19-events.t'
my($errcode, $errmsg, $addinfo) = (undef, "dummy", "dummy");
-my $options = new ZOOM::Options();
-$options->option(async => 1);
-
-my $host = "indexdata.com/gils";
-my $conn = create ZOOM::Connection($options);
+my $host = "z3950.indexdata.com/gils";
+my $conn = create ZOOM::Connection(async => 1);
eval { $conn->connect($host) };
ok(!$@, "connection to '$host'");
# See comments in 19-event.t
assert_event_stream($conn,
- ZOOM::Event::CONNECT,
+ -(ZOOM::Event::CONNECT),
ZOOM::Event::SEND_APDU,
ZOOM::Event::SEND_DATA,
ZOOM::Event::RECV_DATA,