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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 3 Oct 2017 13:59:03 +0000 (15:59 +0200)
commit02d518b334596ed585596c614ab31c0656901634
treeb5d42883ab786a76947a8f69b827afc340e0719b
parentad718868553f149d0e9ea9ec7b7718677bac6c5e
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>
t/Calendar.t