Bug 17539: [QA Follow-up] Move handle after schema

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2016-11-04 08:58:20 +01:00 committed by Kyle M Hall
parent 91774fcf15
commit 4fd1f3e48e

View file

@ -47,12 +47,11 @@ $module->mock('userenv', sub {
{ }
});
my $dbh = C4::Context->dbh;
# Start transaction
my $database = Koha::Database->new();
my $schema = $database->schema();
$schema->storage->txn_begin();
my $dbh = C4::Context->dbh;
my $builder = t::lib::TestBuilder->new;