]> 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)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 20 Feb 2017 09:30:47 +0000 (10:30 +0100)
commitc7af305e73ed8f914b2e32633f38e4b3add74f33
tree49e582d92ae9bb49ef7216ca12d3c06c9d5bb8fd
parentf7b6770ef12d9fbd441e1ff4eec5d693546d5ae6
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>
(cherry picked from commit f45cd420d1bed73b9a85c5260ae4a781041a6626)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
t/db_dependent/Members/IssueSlip.t