Skip to content

Commit ffb0ca4

Browse files
Add explicit disconnect() in testing connection
Added comments and explicit disconnect() in testing connection to better readability of testing code.
1 parent 7eb34b7 commit ffb0ca4

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)