]> git.koha-community.org Git - koha.git/commit
Bug 19775: Try & prevent Search/History.t to fail randomly
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Dec 2017 16:41:06 +0000 (13:41 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 21 Dec 2017 09:53:34 +0000 (10:53 +0100)
commit3b49e16dfac6f5e3018bfb1509759ce5e0757ba0
tree8402e06a597fce891fcdc2850f7c14b16f46b397
parenta71013cfac11d860e6071f6ae9ef966a7c9d0c5c
Bug 19775: Try & prevent Search/History.t to fail randomly

 #   Failed test 'There are still 8 searches after calling delete with an interval = 6 days'
 #   at t/db_dependent/Search/History.t line 185.
 #          got: '6'
 #     expected: '8'

 #   Failed test 'There are still 2 searches after calling delete with an interval = 2 days'
 #   at t/db_dependent/Search/History.t line 191.
 #          got: '0'
 #     expected: '2'
 # Looks like you failed 2 tests of 27.
[15:04:12] t/db_dependent/Search/History.t

It looks like it does not longer fail with this change (date comparaison wrongly rounded to second in mysql?)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 68a6d049869789618af1ddba9802b6d593593d09)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Search/History.t