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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/