From 8d30669458f671913d56596cd0461d8ab2a7c440 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 16 Feb 2018 10:49:43 -0300 Subject: [PATCH] Bug 18403: Prevent Modifications.t to fail randomly # Failed test 'pending_count() correctly returns 2 if filtered by library' # at t/db_dependent/Koha/Patron/Modifications.t line 355. # got: '0' # expected: '2' # Failed test 'pending_count() correctly returns 2' # at t/db_dependent/Koha/Patron/Modifications.t line 360. # got: '0' # expected: '2' # Failed test 'pending_count() correctly returns 1' # at t/db_dependent/Koha/Patron/Modifications.t line 365. # got: '0' # expected: '1' # Looks like you failed 3 tests of 16. # Failed test 'pending_count() and pending() tests' # at t/db_dependent/Koha/Patron/Modifications.t line 374. # Looks like you failed 1 test of 6. [19:45:28] t/db_dependent/Koha/Patron/Modifications.t The logged in patron did not have permissions to view patron's info from other branches. Signed-off-by: Jonathan Druart --- t/db_dependent/Koha/Patron/Modifications.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Patron/Modifications.t b/t/db_dependent/Koha/Patron/Modifications.t index f1e6934c73..188808878d 100755 --- a/t/db_dependent/Koha/Patron/Modifications.t +++ b/t/db_dependent/Koha/Patron/Modifications.t @@ -272,7 +272,7 @@ subtest 'pending_count() and pending() tests' => sub { my $patron_1 = $builder->build( - { source => 'Borrower', value => { branchcode => $library_1 } } ); + { source => 'Borrower', value => { branchcode => $library_1, flags => 1 } } ); my $patron_2 = $builder->build( { source => 'Borrower', value => { branchcode => $library_2 } } ); -- 2.11.0