[Koha-bugs] [Bug 17742] New: Test t/db_dependent/Patrons.t can fail randomly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 7 22:42:23 CET 2016


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

            Bug ID: 17742
           Summary: Test t/db_dependent/Patrons.t can fail randomly
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Test Suite
          Assignee: chris at bigballofwax.co.nz
          Reporter: josef.moravec at gmail.com
        QA Contact: gmcharlt at gmail.com

Tests on line 75 and 81 can sometimes, the failing line is:
is( dt_from_string($b1_new->updated_on), dt_from_string, "borrowers.updated_on
should have been set to now on creating" );

And the problem could more often happen on slower machines...
We are testing the date and time of updated_on, but creating the test patrons,
retrieving tested patron and test itself definitely takes some (short) time...
which sometimes can be on the edge of a second and you can see this:

#   Failed test 'borrowers.updated_on should have been set to now on creating'
#   at t/db_dependent/Patrons.t line 75.
#          got: '2016-12-06T20:44:25'
#     expected: '2016-12-06T20:44:26'

and also, the both tests on line 75 and 81 are the same, which is not intended
I think...

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


More information about the Koha-bugs mailing list