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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 5 Apr 2018 13:09:04 +0000 (10:09 -0300)
commitb76ad51b9d45d67746bddf27a9376e810c1b2d1e
tree1490a8e7e88ccaf09649f8b32f9846c47aa782bb
parentc3f9b750e22b87f6f699bf608cc90fa91cd1ef58
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>
C4/Installer/PerlDependencies.pm
t/db_dependent/OAI/Server.t