From bb96bdc09a96063daf0641e9f157a3b49a4ceaf4 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 6 Oct 2021 13:44:16 -0300 Subject: [PATCH] Bug 27526: (QA follow-up) Wrap tests in transaction Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/Biblio.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t index 4b52e49fb6..a9ed0ad98d 100755 --- a/t/db_dependent/Koha/Biblio.t +++ b/t/db_dependent/Koha/Biblio.t @@ -651,9 +651,11 @@ subtest 'get_marc_notes() UNIMARC tests' => sub { $schema->storage->txn_rollback; }; -subtest 'host_items' => sub { +subtest 'host_items() tests' => sub { plan tests => 6; + $schema->storage->txn_begin; + my $biblio = $builder->build_sample_biblio( { frameworkcode => '' } ); t::lib::Mocks::mock_preference( 'EasyAnalyticalRecords', 1 ); @@ -686,4 +688,5 @@ subtest 'host_items' => sub { is( ref($host_items), 'Koha::Items' ); is( $host_items->count, 0 ); + $schema->storage->txn_rollback; }; -- 2.32.0