Skip to content

Commit e7c5fce

Browse files
authored
Merge pull request #217 from michal-josef-spacek/improve_testing
Add explicit disconnect() in testing connection
2 parents 7945c45 + 6bfa388 commit e7c5fce

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

t/15reconnect.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ require 'lib.pl';
1212
my $dbh;
1313
my $sth;
1414

15+
# Test connection
1516
$dbh = DbiTestConnect($test_dsn, $test_user, $test_password,
1617
{ RaiseError => 1, PrintError => 0 });
1718
$dbh->disconnect();

t/55utf8.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ binmode $tb->output, ":utf8";
1313
binmode $tb->failure_output, ":utf8";
1414
binmode $tb->todo_output, ":utf8";
1515

16+
# Test connection
1617
my $dbh = DbiTestConnect($test_dsn, $test_user, $test_password,
1718
{ RaiseError => 1, PrintError => 0, AutoCommit => 0 });
19+
$dbh->disconnect();
1820

1921
plan tests => 40 * 2;
2022

0 commit comments

Comments
 (0)