]> git.koha-community.org Git - koha.git/commit
Bug 18759: Try to fix random failure from Circulation.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 8 Jun 2017 14:54:18 +0000 (11:54 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 13 Jun 2017 05:43:23 +0000 (07:43 +0200)
commitac6f945f428419e4059ac8647466d054ffd4ab6e
tree46bf23ab17d0d11c5fda23f206dadd03f53ff5c5
parentc71fada134ec5eb1f997c770d27dda0c68b34ae9
Bug 18759: Try to fix random failure from Circulation.t

Circulation.t is failing randomly on our CI
https://jenkins.koha-community.org/job/Koha_Master_D8/192/console

    #   Failed test at t/db_dependent/Circulation.t line 1147.
    #          got: '1'
    #     expected: '0'

    #   Failed test at t/db_dependent/Circulation.t line 1152.
    #          got: '1'
    #     expected: '0'

    #   Failed test at t/db_dependent/Circulation.t line 1156.
    #          got: '1'
    #     expected: '0'

    #   Failed test at t/db_dependent/Circulation.t line 1170.
    #          got: '1'
    #     expected: '0'

    #   Failed test at t/db_dependent/Circulation.t line 1184.
    #          got: '1'
    #     expected: '0'
    # Looks like you failed 5 tests of 23.

Sometimes one of the alert or impossible flags is set.
This patch guesses that it's because of the 'restricted' value of the item that is evaluated to 1.
If it is not fixed by this patch, we will have more info next time (at least know
if alert or impossible is set).

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
The fix is trivial. Using random data will lead to this situations. The good thing is that
it lets us spot places in which tests need more fine-grained data.

(cherry picked from commit 9a55f5783c91b92cb8518f423ab23bd9727051ee)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 178ecea26000f6c3b8b16630ac6f13277d828d68)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/db_dependent/Circulation.t