Bug 24150: Prevent random failure comparing updated_on
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 7 Jan 2020 15:02:36 +0000 (16:02 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 7 Jan 2020 16:27:54 +0000 (16:27 +0000)
commit7514ecb6c99851e9334875973a8085b6447fb2b9
tree3af4ce4c017656ccb6c028ab1157fbdf90c03874
parente5ce7f54a47b34b2aae87ed3e064f2d7d3de0d24
Bug 24150: Prevent random failure comparing updated_on

Jenkins is currently failing (slow server, datetime comparison, etc.)

koha_1       |     #   Failed test at t/db_dependent/Koha/Old.t line 48.
koha_1       |     #     Structures begin differing at:
koha_1       |     #          $got->{updated_on} = '2020-01-07 14:15:22'
koha_1       |     #     $expected->{updated_on} = '2020-01-07 14:15:21'
koha_1       |     # Looks like you failed 1 test of 1.
koha_1       |
koha_1       | #   Failed test 'Koha::Old::Patrons'
koha_1       | #   at t/db_dependent/Koha/Old.t line 49.
koha_1       | # Looks like you failed 1 test of 2.
koha_1       | [14:15:22] t/db_dependent/Koha/Old.t ...............................................

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Koha/Old.t