]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 14 Feb 2017 13:59:23 +0000 (13:59 +0000)
commitadd15799229df7a1910d759f487c0006bf3f30ae
tree708609b4f710029f83e116ba4165cc03d8be7490
parent21d63c8fb0c2ae3a8ca7caaf0d4041b7189213c3
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>
t/db_dependent/Members/IssueSlip.t