Skip to content

Commit

Permalink
add a couple of dbd::sybase reconnection tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rkitover committed Jul 1, 2009
1 parent eabab5d commit b3f4126
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/746sybase.t
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions t/74mssql.t
Expand Up @@ -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');
Expand Down

0 comments on commit b3f4126

Please sign in to comment.