Bug 19009: Fix random failures from Circulation.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 31 Jul 2017 14:18:23 +0000 (11:18 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 8 Aug 2017 12:21:43 +0000 (09:21 -0300)
commit4bbec5c382590f881e6d2af62b2608fe9cf9e051
treee62bc7791c53e21cb92ce71b5382dcf0c70997ce
parentae5f5c479929cbfad3193c6ce9471a406a2a41f3
Bug 19009: Fix random failures from Circulation.t

From jenkins output:
 Subtest: CanBookBeIssued + Koha::Patron->is_debarred<7c>has_overdues
1..8
not ok 1
[SKIP]

I executed it several times and display the different $error, $alerts and question keys.
GNA and RESTRICTED were sometimes set, which block the issue.
Reading the code it seems that some patron's attributes must be removed to avoid the checkin rejection.

Test plan:
Execute the tests several times and notice that it fails randomly
With this patch they should always pass.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Circulation.t