Skip to content
Snippets Groups Projects
Commit b06ab3c5 authored by Graham McVicker's avatar Graham McVicker
Browse files

updated test for modified DBConnection behaviour

parent e2bc6303
No related branches found
No related tags found
No related merge requests found
......@@ -124,9 +124,11 @@ ok(test_getter_setter($dbc, 'db_handle', $dbc->db_handle));
# try the database with the disconnect_when_inactive flag set.
# this should automatically disconnect from the db
#
my $dbh = $dbc->db_handle();
$dbc->disconnect_when_inactive(1);
ok(!$dbc->db_handle->ping());
ok(!$dbh->ping());
{
# reconnect should happen now
......@@ -138,7 +140,9 @@ ok(!$dbc->db_handle->ping());
# disconnect should occur now
}
ok(!$dbc->db_handle->ping());
ok(!$dbh->ping());
$dbh = $dbc->db_handle();
#
# try the same thing but with 2 connections at a time
......@@ -162,7 +166,7 @@ ok(!$dbc->db_handle->ping());
}
ok(!$dbc->db_handle->ping());
ok(!$dbh->ping());
$dbc->disconnect_when_inactive(0);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment