Bug 18762: Remove a warning from History.t

Test plan:
  prove t/db_dependent/Search/History.t
should not display any warnings

Signed-off-by: Lee Jamison <ldjamison@marywood.edu>

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
(cherry picked from commit 15f9e830ec)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 5c0e28d092)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
Jonathan Druart 2017-06-08 15:36:40 -03:00 committed by Katrin Fischer
parent 83324ded22
commit a5b9bbe042
1 changed files with 3 additions and 4 deletions

View File

@ -9,9 +9,10 @@ use List::Util qw( shuffle );
use C4::Context;
use Koha::DateUtils;
my $schema = Koha::Database->new->schema;
$schema->storage->txn_begin;
my $dbh = C4::Context->dbh;
$dbh->{AutoCommit} = 0;
$dbh->{RaiseError} = 1;
use_ok('Koha::DateUtils');
use_ok('C4::Search::History');
@ -345,6 +346,4 @@ sub delete_all {
});
}
$dbh->rollback;
done_testing;