]> git.koha-community.org Git - koha.git/commit
Bug 20191: Use Test::MockTime to hold time still
authorMark Tompsett <mtompset@hotmail.com>
Thu, 5 Apr 2018 01:31:38 +0000 (01:31 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 6 Jun 2018 13:56:10 +0000 (15:56 +0200)
commit232dcacb692d6c2e917767eaa9daab7d139ccf13
treeff953974d8345e4d1db3a8cc81d6c344cb6b42f3
parent140d171e651280d1b4a259d50db3c47d417739d9
Bug 20191: Use Test::MockTime to hold time still

The problem is the calls to HTTP::OAI::Header, etc.
may reference gmtime which is continually changing by
the second. By forcing time to lock for all the tests,
except the last one, we can be assured things should
not fail.

TEST PLAN
---------
install libtest-mocktime-perl
apply the patch
restart_all
in kshell, prove t/db_dependent/OAI/Server.t
run koha qa test tools

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit b76ad51b9d45d67746bddf27a9376e810c1b2d1e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Installer/PerlDependencies.pm
t/db_dependent/OAI/Server.t