From 020d93e3e5eb958c5fc1a62cba6dbdee6104ea49 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 9 Apr 2021 15:37:36 +0200 Subject: [PATCH] Bug 28031: Add missing txn_begin in Attribute.t --- t/db_dependent/Koha/Patron/Attribute.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/db_dependent/Koha/Patron/Attribute.t b/t/db_dependent/Koha/Patron/Attribute.t index 670bc87cbfd..17f54f6a8e8 100755 --- a/t/db_dependent/Koha/Patron/Attribute.t +++ b/t/db_dependent/Koha/Patron/Attribute.t @@ -220,6 +220,8 @@ subtest 'store() tests' => sub { plan tests => 1; + $schema->storage->txn_begin; + my $patron = $builder->build_object({ class => 'Koha::Patrons' }); my $non_repeatable_type = $builder->build_object( { @@ -246,6 +248,8 @@ subtest 'store() tests' => sub { ->discard_changes; is( $non_repeatable_attr->attribute, 'HEY', 'Value stored correctly' ); + + $schema->storage->txn_rollback; }; }; -- 2.20.1