[Koha-bugs] [Bug 19176] Dates comparison fails on slow server

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 23 16:44:10 CEST 2017


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #68082|0                           |1
        is obsolete|                            |
  Attachment #68412|0                           |1
        is obsolete|                            |

--- Comment #14 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 68413
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68413&action=edit
Bug 19176: Compare the number of seconds when comparing dates in tests

#   Failed test 'borrowers.updated_on should have been set to now on creating'
  #   at t/db_dependent/Patrons.t line 74.
  #          got: '2017-08-10T20:53:03'
  #     expected: '2017-08-10T20:53:04'
  # Looks like you failed 1 test of 17.
  [20:53:15] t/db_dependent/Patrons.t .....................................

The plan here is to compare the number of seconds between two dates.
If < 60 the dates are consired as identicals.

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


More information about the Koha-bugs mailing list