When running Virtualshelves.t, you have this warning:
DBD::mysql::db begin_work failed: Already in a transaction at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1339.
By moving the DBI lines after creating the TestBuilder object, the warning
will be gone.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
use t::lib::TestBuilder;
+my $builder = t::lib::TestBuilder->new;
+
my $dbh = C4::Context->dbh;
$dbh->{AutoCommit} = 0;
teardown();
-my $builder = t::lib::TestBuilder->new;
-
subtest 'CRUD' => sub {
plan tests => 13;
my $patron = $builder->build({