[Koha-bugs] [Bug 11470] Circulation_transfers.t can fail, spuriously

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 2 19:06:08 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11470

--- Comment #1 from Galen Charlton <gmcharlt at gmail.com> ---
Created attachment 23895
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23895&action=edit
Bug 11470: fix occassional spurious test failure in Circulation_transfers.t

This patch makes Circulation_transfers.t no longer be sensitive to
the exact time it runs, avoiding spurious test failures due
to datesent being a second off between the creation of the test
transfer and the comparison.

To test:

[1] To simulate the failure, add a "sleep(2);" after the
    "#Test GetTransfers" comment and run
    prove -v t/db_dependent/Circulation_transfers.t
[2] Remove the sleep and apply the patch.
[3] Verify that prove -v t/db_dependent/Circulation_transfers.t passes.

Signed-off-by: Galen Charlton <gmc at esilibrary.com>

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


More information about the Koha-bugs mailing list