From: Rafael Kitover Date: Wed, 1 Jul 2009 13:25:46 +0000 (+0000) Subject: add a couple of dbd::sybase reconnection tests X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b3f41261e52df5e7f59a68100680759c1a2039bd;p=dbsrgits%2FDBIx-Class-Historic.git add a couple of dbd::sybase reconnection tests --- diff --git a/t/746sybase.t b/t/746sybase.t index f09862f..10378cf 100644 --- a/t/746sybase.t +++ b/t/746sybase.t @@ -14,7 +14,10 @@ plan tests => 12; my $schema = DBICTest::Schema->connect($dsn, $user, $pass, {AutoCommit => 1}); +# start disconnected to test reconnection $schema->storage->ensure_connected; +$schema->storage->disconnect; + isa_ok( $schema->storage, 'DBIx::Class::Storage::DBI::Sybase' ); $schema->storage->dbh_do (sub { diff --git a/t/74mssql.t b/t/74mssql.t index 72e6552..7de09ef 100644 --- a/t/74mssql.t +++ b/t/74mssql.t @@ -22,6 +22,10 @@ plan tests => 6; my $schema = DBICTest::Schema->clone; $schema->connection($dsn, $user, $pass); +# start disconnected to test reconnection +$schema->storage->ensure_connected; +$schema->storage->disconnect; + my $dbh = $schema->storage->dbh; isa_ok($schema->storage, 'DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server');