[Bast-commits] r6913 - DBIx-Class/0.08/branches/syb_connected/t
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Wed Jul 1 13:25:46 GMT 2009
Author: caelum
Date: 2009-07-01 13:25:46 +0000 (Wed, 01 Jul 2009)
New Revision: 6913
Modified:
DBIx-Class/0.08/branches/syb_connected/t/746sybase.t
DBIx-Class/0.08/branches/syb_connected/t/74mssql.t
Log:
add a couple of dbd::sybase reconnection tests
Modified: DBIx-Class/0.08/branches/syb_connected/t/746sybase.t
===================================================================
--- DBIx-Class/0.08/branches/syb_connected/t/746sybase.t 2009-07-01 13:21:30 UTC (rev 6912)
+++ DBIx-Class/0.08/branches/syb_connected/t/746sybase.t 2009-07-01 13:25:46 UTC (rev 6913)
@@ -14,7 +14,10 @@
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 {
Modified: DBIx-Class/0.08/branches/syb_connected/t/74mssql.t
===================================================================
--- DBIx-Class/0.08/branches/syb_connected/t/74mssql.t 2009-07-01 13:21:30 UTC (rev 6912)
+++ DBIx-Class/0.08/branches/syb_connected/t/74mssql.t 2009-07-01 13:25:46 UTC (rev 6913)
@@ -22,6 +22,10 @@
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');
More information about the Bast-commits
mailing list