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 1d2165f841)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
b37e510eb8
commit
789648aa4c
|
|
@ -18,6 +18,9 @@ use Koha::Util::FrameworkPlugin qw( biblio_008 );
|
|||
our @includes;
|
||||
GetOptions( 'include=s{,}' => \@includes ); #not used by default !
|
||||
|
||||
# Because of CGI::Session being buggy (see bug 17427) and a use of get_session somewhere here
|
||||
t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' );
|
||||
|
||||
my $schema = Koha::Database->new->schema;
|
||||
$schema->storage->txn_begin;
|
||||
our $dbh = C4::Context->dbh;
|
||||
|
|
|
|||
Loading…
Reference in New Issue