From 466f99e44230968aeb51598e50f65d212941c5b4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 25 Jun 2019 17:43:41 -0500 Subject: [PATCH] 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 --- t/db_dependent/SIP/Transaction.t | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/t/db_dependent/SIP/Transaction.t b/t/db_dependent/SIP/Transaction.t index 0e78505..076fb29 100755 --- a/t/db_dependent/SIP/Transaction.t +++ b/t/db_dependent/SIP/Transaction.t @@ -34,7 +34,7 @@ subtest fill_holds_at_checkout => sub { plan tests => 6; - my $category = $builder->build({ source => 'Category' }); + my $category = $builder->build({ source => 'Category', value => { category_type => 'A' }}); my $branch = $builder->build({ source => 'Branch' }); my $borrower = $builder->build({ source => 'Borrower', value =>{ branchcode => $branch->{branchcode}, -- 1.7.2.5