Bugzilla – Attachment 59206 Details for
Bug 17917
t/db_dependent/check_sysprefs.t fails on kohadev strangely
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17917: Fix Cache issue with t/db_dependent/Reserves.t
Bug-17917-Fix-Cache-issue-with-tdbdependentReserve.patch (text/plain), 1.43 KB, created by
Mark Tompsett
on 2017-01-19 05:24:58 UTC
(
hide
)
Description:
Bug 17917: Fix Cache issue with t/db_dependent/Reserves.t
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-01-19 05:24:58 UTC
Size:
1.43 KB
patch
obsolete
>From cc661c6b028115b62b9ed61b4edfcb974109aa6f Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Thu, 19 Jan 2017 05:19:48 +0000 >Subject: [PATCH] Bug 17917: Fix Cache issue with t/db_dependent/Reserves.t > >Forcing a cache flush makes the age restriction tests work. > >TEST PLAN >--------- >$ sudo koha-shell -c "prove t/db_dependent/Reserves.t" kohadev >-- fails >-- apply this patch >$ sudo koha-shell -c "prove t/db_dependent/Reserves.t" kohadev >-- succeeds >-- run koha qa test tools >--- > t/db_dependent/Reserves.t | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t >index c4d0f16..67d3f18 100755 >--- a/t/db_dependent/Reserves.t >+++ b/t/db_dependent/Reserves.t >@@ -32,6 +32,7 @@ use C4::Circulation; > use C4::Items; > use C4::Members; > use C4::Reserves; >+use Koha::Cache; > use Koha::DateUtils; > use Koha::Holds; > use Koha::Libraries; >@@ -52,6 +53,10 @@ my $builder = t::lib::TestBuilder->new; > # Somewhat arbitrary field chosen for age restriction unit tests. Must be added to db before the framework is cached > $dbh->do("update marc_subfield_structure set kohafield='biblioitems.agerestriction' where tagfield='521' and tagsubfield='a'"); > >+# Attempt to reforce the cache to fill with this new structure record. >+my $cache = Koha::Cache->new(); >+$cache->flush_all(); >+ > ## Setup Test > # Add branches > my $branch_1 = $builder->build({ source => 'Branch' })->{ branchcode }; >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17917
:
59026
|
59027
|
59028
|
59029
|
59030
|
59031
|
59039
|
59040
|
59041
|
59042
|
59044
|
59045
|
59046
|
59052
|
59062
|
59175
|
59206
|
59207
|
59274
|
59287
|
59299
|
59310
|
59311
|
59313
|
59319
|
59320
|
59321