@@ -, +, @@ disabled for testing purposes --- Koha/Calendar.pm | 2 +- t/db_dependent/HoldsQueue.t | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) --- a/Koha/Calendar.pm +++ a/Koha/Calendar.pm @@ -104,7 +104,7 @@ sub single_holidays { # ... # } - unless ($single_holidays) { + if (!$single_holidays || $ENV{NO_CACHE}) { my $dbh = C4::Context->dbh; $single_holidays = {}; --- a/t/db_dependent/HoldsQueue.t +++ a/t/db_dependent/HoldsQueue.t @@ -311,6 +311,7 @@ is( $holds_queue->[1]->{cardnumber}, $borrower2->{cardnumber}, "Holds queue fill # and make today a holiday for MPL. When we run it again we should only # have 1 row in the holds queue C4::Context->set_preference('HoldsQueueSkipClosed', 1); +$ENV{NO_CACHE} = 1; my $today = dt_from_string(); C4::Calendar->new( branchcode => 'MPL' )->insert_single_holiday( day => $today->day(), @@ -339,6 +340,7 @@ C4::Context->set_preference( 'HoldsQueueSkipClosed', 1 ); C4::HoldsQueue::CreateQueue(); $holds_queue = $dbh->selectall_arrayref("SELECT * FROM tmp_holdsqueue", { Slice => {} }); is( scalar( @$holds_queue ), 2, "Holds not filled with items from closed libraries" ); +$ENV{NO_CACHE} = 0; # Bug 14297 $itemtype = $item_types[0]->{itemtype}; --