]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 18 Feb 2014 07:50:08 +0000 (08:50 +0100)
commit3f087869dc1b5d615d64d0d07b0229c61a2387c7
tree6c7a8ac82d0bc9bc41f8d449121622c8ce56bee7
parent114c67fed49023b3a354951bfea2809f9d6c8360
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>
(cherry picked from commit 7c518bd250cd2283a055d4547085cd6db6488cf7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Circulation_transfers.t