From 307e55a7debdf5e1c960cbfea443b6b160c0ce9a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 12 Oct 2017 11:19:40 -0300 Subject: [PATCH] Bug 19455: Prevent SwitchOnSiteCheckouts.t to fail randomly If categorycode is 'X', the test will fail Signed-off-by: Jonathan Druart --- t/db_dependent/Circulation/SwitchOnSiteCheckouts.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t b/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t index 3397e23ab8..8a7fb5202d 100644 --- a/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t +++ b/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t @@ -50,11 +50,13 @@ my $branch = $builder->build({ source => 'Branch', }); +my $patron_category = $builder->build({ source => 'Category', value => { categorycode => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); my $patron = $builder->build({ source => 'Borrower', value => { branchcode => $branch->{branchcode}, debarred => undef, + categorycode => $patron_category->{categorycode}, }, }); -- 2.11.0