Bugzilla – Attachment 64240 Details for
Bug 18794
OAI/Server.t fails on slow servers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18794: Fix test ListMetadataFormats in OAI/Server.t
Bug-18794-Fix-test-ListMetadataFormats-in-OAIServe.patch (text/plain), 1.63 KB, created by
Jonathan Druart
on 2017-06-12 21:58:28 UTC
(
hide
)
Description:
Bug 18794: Fix test ListMetadataFormats in OAI/Server.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-06-12 21:58:28 UTC
Size:
1.63 KB
patch
obsolete
>From 1b3f0c798b7770ecd7211be5998790e4a9f3999a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 12 Jun 2017 18:56:45 -0300 >Subject: [PATCH] Bug 18794: Fix test ListMetadataFormats in OAI/Server.t > >This test may fail on slow servers, it compares the response date with >'now', but both can differ a bit. > >https://jenkins.koha-community.org/job/Koha_Master_D8/198/consoleFull > > Failed test 'ListMetadataFormats' > at t/db_dependent/OAI/Server.t line 150. > Structures begin differing at: > $got->{responseDate} = '2017-06-12T14:31:51Z' > $expected->{responseDate} = '2017-06-12T14:31:50Z' > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/OAI/Server.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/OAI/Server.t b/t/db_dependent/OAI/Server.t >index 1aa7fc1..97d2c8d 100644 >--- a/t/db_dependent/OAI/Server.t >+++ b/t/db_dependent/OAI/Server.t >@@ -131,7 +131,6 @@ sub test_query { > %$expected, > ( > request => 'http://localhost', >- responseDate => DateTime->now . 'Z', > xmlns => 'http://www.openarchives.org/OAI/2.0/', > 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', > 'xsi:schemaLocation' => 'http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd', >@@ -147,6 +146,7 @@ sub test_query { > $response = XMLin($stdout); > } > >+ delete $response->{responseDate}; > unless (is_deeply($response, \%full_expected, $test)) { > diag > "PARAM:" . Dump($param) . >-- >2.1.4
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 18794
:
64240
|
67656