[Koha-bugs] [Bug 22453] TestBuilder should generate now() using the current timezone

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 25 20:41:57 CET 2019


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

Liz Rea <wizzyrea at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wizzyrea at gmail.com

--- Comment #6 from Liz Rea <wizzyrea at gmail.com> ---
Hi, 

I'm wondering if this manifests when the datetime of your virtualbox is out of
sync with the current date, such as what could happen on a laptop if you sleep
the box while devbox is running?

This was debian 9, ftr: 

kohadev-koha at kohadevbox:/home/vagrant/kohaclone$ prove
t/db_dependent/Koha/Patrons.t 
t/db_dependent/Koha/Patrons.t .. 26/33 
    #   Failed test 'With BorrowerLogs and TrackLastPatronActivity we should
not spam the logs'
    #   at t/db_dependent/Koha/Patrons.t line 1421.
    #          got: '2'
    #     expected: '1'
    # Looks like you failed 1 test of 4.
t/db_dependent/Koha/Patrons.t .. 30/33 
#   Failed test 'BorrowersLog tests'
#   at t/db_dependent/Koha/Patrons.t line 1422.
t/db_dependent/Koha/Patrons.t .. 32/33 # Looks like you failed 1 test of 33.
t/db_dependent/Koha/Patrons.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/33 subtests 

Test Summary Report
-------------------
t/db_dependent/Koha/Patrons.t (Wstat: 256 Tests: 33 Failed: 1)
  Failed test:  30
  Non-zero exit status: 1
Files=1, Tests=33, 47 wallclock secs ( 0.10 usr  0.00 sys + 36.20 cusr  8.52
csys = 44.82 CPU)
Result: FAIL
kohadev-koha at kohadevbox:/home/vagrant/kohaclone$ date
Thu Mar 21 19:54:59 GMT 2019 

^^ that is very much not today's date.

A Vagrant reload might fix the tests when they're failing? Maybe your ubuntu
box has a bad date and your debian one didn't?

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


More information about the Koha-bugs mailing list