]> git.koha-community.org Git - koha.git/commit
Bug 38526: (bug 36822 follow-up): Improve datetime comparison in tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 25 Nov 2024 10:57:54 +0000 (11:57 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 18 Dec 2024 13:46:43 +0000 (14:46 +0100)
commit43076cabd2f9047754d9628439038d25df16d374
tree43dcfd6cacbe207f7e40e7364de00ddafcfa861f
parent9f5497343a606a38bc2669ad21b3c7d8d0b37197
Bug 38526: (bug 36822 follow-up): Improve datetime comparison in tests

17:39:54 koha_1       |     #   Failed test 'updated_on correctly saved on newly created user'
17:39:54 koha_1       |     #   at t/db_dependent/Auth_with_shibboleth.t line 319.
17:39:54 koha_1       |     #     Structures begin differing at:
17:39:54 koha_1       |     #          $got->[0] = '2024-11-19 16:39:30'
17:39:54 koha_1       |     #     $expected->[0] = '2024-11-19 16:39:29'
17:39:54 koha_1       |     # Looks like you failed 1 test of 54.

We must use t::lib::Dates::compare to compare datetimes in tests.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit ed25a48ccf566bf4a21040a36d25bda8d598c301)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 3b31cf80c3c2e4a6cbc440cd93b5645d927d5661)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Auth_with_ldap.t
t/db_dependent/Auth_with_shibboleth.t