]> git.koha-community.org Git - koha.git/commit
Bug 19385: Fix random t/Calendar.t failure - clear the cache before
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 28 Sep 2017 17:49:11 +0000 (14:49 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Fri, 6 Oct 2017 06:15:26 +0000 (08:15 +0200)
commit0e5ae1af5de6423c99daa77b31bbe309159ccd62
treee9262e789131751ebb99d707758b19ebe5035a9c
parent3e38feb58a07e5e60fdde726fe90199958bbc653
Bug 19385: Fix random t/Calendar.t failure - clear the cache before

The cache 'exception_holidays' may be populated when we run these tests,
we need to clear it before the tests are run.

Test plan:
  prove t/db_dependent/Circulation/CalcDateDue.t  t/Calendar.t

Without this patch, t/Calendar will fail with:
  #   Failed test 'Exception holiday is not a closed day test'
  #   at t/Calendar.t line 159.
  #          got: '1'
  #     expected: '0'
  # Looks like you failed 1 test of 38.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ae86b7ca9ea60bba47d3a999ff13d6140cdc5e1c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 02d518b334596ed585596c614ab31c0656901634)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/Calendar.t