[Koha-bugs] [Bug 22917] Circulation.t fails if tests are ran slowly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 16 03:12:07 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22917

--- Comment #3 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 89799
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89799&action=edit
Bug 22917: Fix more funky things

And that's where a land.

We are making another test failing much more often than before.
The 'now' mocked will be far before the now() of mysql from the tests
executed at the end of Circulation.t
Without this patch I get the following error one out of the two runs:
    #   Failed test 'renew log successfully added'
    #   at t/db_dependent/Circulation.t line 3024.
    #          got: '4'
    #     expected: '5'
    # Looks like you failed 1 test of 13.

Using the mocked value will solve this issue.
I cannot find any side-effects this change could cause.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list