[Koha-bugs] [Bug 20191] OAI/Server.t still fails on slow servers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 5 15:07:32 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20191

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #71673|0                           |1
        is obsolete|                            |
  Attachment #71816|0                           |1
        is obsolete|                            |
  Attachment #72009|0                           |1
        is obsolete|                            |
  Attachment #73669|0                           |1
        is obsolete|                            |

--- Comment #17 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 73684
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73684&action=edit
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 at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list