From b15a3c1b5ed37f973fcb3fec583622a3f70175fd Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 21 Jul 2017 12:07:19 +0000 Subject: [PATCH] Bug 18826 - (QA Followup) Add mock SessionStorage to patrons.t Signed-off-by: Jonathan Druart (cherry picked from commit a696843f82dc026ab6545f18b113af8efc753715) Signed-off-by: Fridolin Somers --- t/db_dependent/api/v1/patrons.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/db_dependent/api/v1/patrons.t b/t/db_dependent/api/v1/patrons.t index 705a2f8d7b..909e36e93e 100644 --- a/t/db_dependent/api/v1/patrons.t +++ b/t/db_dependent/api/v1/patrons.t @@ -33,6 +33,10 @@ my $builder = t::lib::TestBuilder->new(); $schema->storage->txn_begin; +# FIXME: sessionStorage defaults to mysql, but it seems to break transaction handling +# this affects the other REST api tests +t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' ); + $ENV{REMOTE_ADDR} = '127.0.0.1'; my $t = Test::Mojo->new('Koha::REST::V1'); -- 2.39.5