Bugzilla – Attachment 182780 Details for
Bug 39995
Koha/Biblio.t can fail on slow servers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39995: Prevent Koha/Biblio.t to fail on slow servers
Bug-39995-Prevent-KohaBibliot-to-fail-on-slow-serv.patch (text/plain), 1.15 KB, created by
Jonathan Druart
on 2025-05-26 08:15:21 UTC
(
hide
)
Description:
Bug 39995: Prevent Koha/Biblio.t to fail on slow servers
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-05-26 08:15:21 UTC
Size:
1.15 KB
patch
obsolete
>From c2b7b36e54b544f3b20c325f085359ad5c97c1ea Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 26 May 2025 10:14:53 +0200 >Subject: [PATCH] Bug 39995: Prevent Koha/Biblio.t to fail on slow servers > >--- > t/db_dependent/Koha/Biblio.t | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t >index 0cd7491d152..7cdf7989cca 100755 >--- a/t/db_dependent/Koha/Biblio.t >+++ b/t/db_dependent/Koha/Biblio.t >@@ -39,6 +39,7 @@ use Koha::Exception; > use MARC::Field; > use MARC::Record; > >+use t::lib::Dates; > use t::lib::TestBuilder; > use t::lib::Mocks; > use Test::MockModule; >@@ -591,6 +592,12 @@ subtest 'to_api() tests' => sub { > plan tests => ( scalar keys %{$biblioitem_api} ) + 4; > > foreach my $key ( keys %{$biblioitem_api} ) { >+ if ( $key eq 'timestamp' ) { >+ t::lib::Dates::compare( >+ $biblio_api->{$key}, $biblioitem_api->{$key}, >+ "$key is added to the biblio object" >+ ); >+ } > is( $biblio_api->{$key}, $biblioitem_api->{$key}, "$key is added to the biblio object" ); > } > >-- >2.34.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 39995
: 182780