Bug 23211: Prevent SIP/Transaction.t to fail randomly
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 25 Jun 2019 22:43:41 +0000 (17:43 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 25 Jul 2019 11:41:06 +0000 (13:41 +0200)
commita38bc661008aecfcc1d2a3f92eb242dd4eabcc96
tree1690556b2e00acb546bff68901ffd87d587f9bbe
parent4c3d5e8ccfd743be4baa6eeaca5ce3a919d306e6
Bug 23211: Prevent SIP/Transaction.t to fail randomly

The checkout failed because patron's category is the one used for statistics (category_type=X).

To recreate the failure:
modified: t/db_dependent/SIP/Transaction.t
@ Transaction.t:37 @ subtest fill_holds_at_checkout => sub {
     plan tests => 6;

-    my $category = $builder->build({ source => 'Category' });
+    my $category = $builder->build({ source => 'Category', value => { category_type => 'X' }});
     my $branch   = $builder->build({ source => 'Branch' });
     my $borrower = $builder->build({ source => 'Borrower', value =>{
         branchcode => $branch->{branchcode},

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 466f99e44230968aeb51598e50f65d212941c5b4)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/SIP/Transaction.t