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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 25 Jul 2019 20:49:45 +0000 (20:49 +0000)
commit496e507122bc3aa26828bb554db8d11562445eb1
treea4bae62b91053cadff1dc5d5c7a882831a84f1c0
parentf8b7a5f5e144e9539c1c7e7fd59904257b0ed33f
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>
(cherry picked from commit a38bc661008aecfcc1d2a3f92eb242dd4eabcc96)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/SIP/Transaction.t