Bugzilla – Attachment 67720 Details for
Bug 19198
Renewal as issue causes too many error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19198: Prevent the test to fail randomly
Bug-19198-Prevent-the-test-to-fail-randomly.patch (text/plain), 1.41 KB, created by
Jonathan Druart
on 2017-10-06 14:59:57 UTC
(
hide
)
Description:
Bug 19198: Prevent the test to fail randomly
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-10-06 14:59:57 UTC
Size:
1.41 KB
patch
obsolete
>From 168ada5b515eb2cdf07c76a2540ba18625e78a67 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 6 Oct 2017 11:58:42 -0300 >Subject: [PATCH] Bug 19198: Prevent the test to fail randomly > >If categorycode is 'X', the test will fail >--- > t/db_dependent/Circulation.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t >index 8d9d856a5f..17752bdc62 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -1821,7 +1821,7 @@ subtest 'Set waiting flag' => sub { > is( $status, 'Waiting', 'Now the hold is waiting'); > }; > >-subtest 'AddReturn | is_overdue' => sub { >+subtest 'CanBookBeIssued | is_overdue' => sub { > plan tests => 3; > > # Set a simple circ policy >@@ -1850,7 +1850,7 @@ subtest 'AddReturn | is_overdue' => sub { > my $five_days_go = output_pref({ dt => dt_from_string->add( days => 5 ), dateonly => 1}); > my $ten_days_go = output_pref({ dt => dt_from_string->add( days => 10), dateonly => 1 }); > my $library = $builder->build( { source => 'Branch' } ); >- my $patron = $builder->build( { source => 'Borrower' } ); >+ my $patron = $builder->build( { source => 'Borrower', value => { categorycode => $patron_category->{categorycode} } } ); > > my $biblioitem = $builder->build( { source => 'Biblioitem' } ); > my $item = $builder->build( >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19198
:
66584
|
66585
|
66670
|
66671
|
67111
|
67112
|
67113
|
67567
|
67568
|
67569
|
67571
|
67572
|
67573
|
67719
| 67720