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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jan 5 22:10:40 CET 2014


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #23903|0                           |1
        is obsolete|                            |
  Attachment #23908|0                           |1
        is obsolete|                            |

--- Comment #4 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 23909
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23909&action=edit
[PASSED QA] 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>
Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
Works as described.

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


More information about the Koha-bugs mailing list