Bug 17917: [QA Follow-up] Reprove Search.t
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 20 Jan 2017 09:11:47 +0000 (10:11 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 13:39:36 +0000 (13:39 +0000)
The config tweaks from Search.t break check_sysprefs.t later on.
Clearing the cache resolves that.

Test plan:
[1] Run prove t/db_dependent/Search.t t/db_dependent/check_sysprefs.t (in
    one statement) before and after applying this patch.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
A prove t/db_dependent did not fail check_sysprefs.t (only skipping two
tests: 00-strict.t and Koha/IssuingRules.t; not enough patience)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Search.t

index fd9ad98..240c3d4 100644 (file)
@@ -981,4 +981,7 @@ subtest 'UNIMARC + DOM' => sub {
     run_unimarc_search_tests('dom');
 };
 
+# Make sure that following tests are not using our config settings
+Koha::Caches->get_instance('config')->flush_all;
+
 1;