]> git.koha-community.org Git - koha.git/commit
Bug 18009 - IssueSlip.t test fails if launched between 00:00 and 00:59
authorMason James <mtj@kohaaloha.com>
Sat, 28 Jan 2017 11:47:20 +0000 (00:47 +1300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 14 Feb 2017 21:26:17 +0000 (22:26 +0100)
commitf45cd420d1bed73b9a85c5260ae4a781041a6626
tree551112f23bbe296fc18e2230320a79f1ce482025
parentc4f977b76f171130d7f9c370ef6e27b6c0fd2384
Bug 18009 - IssueSlip.t test fails if launched between 00:00 and 00:59

to test patch...

1/ set date between 00:00 and 00:59
$ sudo date -s 'Sun Jan 29 00:41:55 NZDT 2017'

2/ run prove, see fail
$ prove -v t/db_dependent/Members/IssueSlip.t
...
t/db_dependent/Members/IssueSlip.t (Wstat: 65280 Tests: 1 Failed: 0)
Result: FAIL

3/ apply patch

4/ run prove, see pass
$ prove -v t/db_dependent/Members/IssueSlip.t
...
All tests successful.
Result: PASS

NOTE: for code obscurity you could have also done a modulus 24. ;)

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit add15799229df7a1910d759f487c0006bf3f30ae)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/db_dependent/Members/IssueSlip.t