]> git.koha-community.org Git - koha.git/commit
Bug 11470: fix occassional spurious test failure in Circulation_transfers.t
authorGalen Charlton <gmc@esilibrary.com>
Thu, 2 Jan 2014 18:02:17 +0000 (18:02 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 6 Jan 2014 05:31:21 +0000 (05:31 +0000)
commit7c518bd250cd2283a055d4547085cd6db6488cf7
tree6cd0c85bf961d503fa7d37c08fd6feece3f4167d
parent543e1dc6731d4a26b777223920bfe4037e7546dd
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@esilibrary.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Circulation_transfers.t