Bugzilla – Attachment 70863 Details for
Bug 19705
DecreaseLoanHighHolds.t is still failing randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19705: Try to fix random failures from DecreaseLoanHighHolds.t
Bug-19705-Try-to-fix-random-failures-from-Decrease.patch (text/plain), 1.24 KB, created by
Jonathan Druart
on 2018-01-23 20:01:08 UTC
(
hide
)
Description:
Bug 19705: Try to fix random failures from DecreaseLoanHighHolds.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-01-23 20:01:08 UTC
Size:
1.24 KB
patch
obsolete
>From f96d72d127f0f47489c11a9f5101133b27c6e49b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 23 Jan 2018 17:00:16 -0300 >Subject: [PATCH] Bug 19705: Try to fix random failures from > DecreaseLoanHighHolds.t > >No idea if it will do the trick, wait and see... >--- > t/db_dependent/DecreaseLoanHighHolds.t | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/t/db_dependent/DecreaseLoanHighHolds.t b/t/db_dependent/DecreaseLoanHighHolds.t >index c970d91325..b35dbfd14e 100755 >--- a/t/db_dependent/DecreaseLoanHighHolds.t >+++ b/t/db_dependent/DecreaseLoanHighHolds.t >@@ -16,6 +16,7 @@ > # along with Koha; if not, see <http://www.gnu.org/licenses>. > > use Modern::Perl; >+use DateTime; > > use C4::Circulation; > use Koha::Database; >@@ -42,6 +43,10 @@ $dbh->do('DELETE FROM issuingrules'); > $dbh->do('DELETE FROM borrowers'); > $dbh->do('DELETE FROM items'); > >+my $now_value = DateTime->now(); >+my $mocked_datetime = Test::MockModule->new('DateTime'); >+$mocked_datetime->mock( 'now', sub { return $now_value; } ); >+ > my $library = $builder->build( { source => 'Branch' } ); > my $category = $builder->build( { source => 'Category' } ); > my $itemtype = $builder->build( { source => 'Itemtype' } )->{itemtype}; >-- >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 19705
: 70863