Bugzilla – Attachment 89853 Details for
Bug 22917
Circulation.t fails if tests are ran slowly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22917: Fix a typo in an output_pref call
Bug-22917-Fix-a-typo-in-an-outputpref-call.patch (text/plain), 1.80 KB, created by
Martin Renvoize (ashimema)
on 2019-05-16 15:57:16 UTC
(
hide
)
Description:
Bug 22917: Fix a typo in an output_pref call
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-05-16 15:57:16 UTC
Size:
1.80 KB
patch
obsolete
>From c1bcab3ec1290b1387894e0a11933c0b8fe09eac Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 16 May 2019 16:55:16 +0100 >Subject: [PATCH] Bug 22917: Fix a typo in an output_pref call > >Due to a type in a call to output_pref (datenonly vs dateonly) we were >comparing logactions within a minutes accuracy. Counting the logs for >the day would be sufficient for the test ;) >--- > 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 37ab7a57b7..54b3c78eaa 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -3000,7 +3000,7 @@ subtest 'AddRenewal and AddIssuingCharge tests' => sub { > # Check the item out > AddIssue( $patron->unblessed, $item->barcode ); > t::lib::Mocks::mock_preference( 'RenewalLog', 0 ); >- my $date = output_pref( { dt => dt_from_string(), datenonly => 1, dateformat => 'iso' } ); >+ my $date = output_pref( { dt => dt_from_string(), dateonly => 1, dateformat => 'iso' } ); > my %params_renewal = ( > timestamp => { -like => $date . "%" }, > module => "CIRCULATION", >@@ -3016,7 +3016,7 @@ subtest 'AddRenewal and AddIssuingCharge tests' => sub { > unlike ( $checkouts->next->lastreneweddate, qr/00:00:00/, 'AddRenewal should set the renewal date with the time part'); > > t::lib::Mocks::mock_preference( 'RenewalLog', 1 ); >- $date = output_pref( { dt => dt_from_string(), datenonly => 1, dateformat => 'iso' } ); >+ $date = output_pref( { dt => dt_from_string(), dateonly => 1, dateformat => 'iso' } ); > $old_log_size = Koha::ActionLogs->count( \%params_renewal ); > AddRenewal( $patron->id, $item->id, $library->id ); > $new_log_size = Koha::ActionLogs->count( \%params_renewal ); >-- >2.20.1
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 22917
:
89797
|
89798
|
89799
|
89853
|
89855
|
89856
|
89857
|
89876
|
89877
|
90018
|
90019
|
90020
|
90021