Bug 36356: Fix rollback from FrameworkPlugin.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 19 Mar 2024 08:16:52 +0000 (09:16 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 21 Mar 2024 10:06:48 +0000 (11:06 +0100)
commit789648aa4cf25d2a94f40ec370c8a4132a9fed13
tree7c13ede0818174a644e528557aa1e43e15c0491f
parentb37e510eb8c2b280a69dfb60c427c60d1d53b041
Bug 36356: Fix rollback from FrameworkPlugin.t

rollback ineffective with AutoCommit enabled at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1651.

I have not investigated more than that. Reaching this was already the
end of a long road... (see comment 0)

Test plan:
0. Do not apply this patch
1. select count(*) from branches
Note the value
2. Run
  prove t/db_dependent/FrameworkPlugin.t
=> There is a warning
3. Repeat 1.
=> There are too many libraries!
4. Apply the patch, retry 1, 2, 3
=> No warning, no library added by the tests

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 1d2165f84106cc27b804ac4c347817d25d1403aa)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/FrameworkPlugin.t