Bugzilla – Attachment 133845 Details for
Bug 30596
api/v1/acquisitions_baskets.t is failing randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30596: Prevent api/v1/acquisitions_baskets.t and api/v1/acquisitions_funds.t to fail randomly
Bug-30596-Prevent-apiv1acquisitionsbasketst-and-ap.patch (text/plain), 1.78 KB, created by
Victor Grousset/tuxayo
on 2022-04-25 22:06:11 UTC
(
hide
)
Description:
Bug 30596: Prevent api/v1/acquisitions_baskets.t and api/v1/acquisitions_funds.t to fail randomly
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2022-04-25 22:06:11 UTC
Size:
1.78 KB
patch
obsolete
>From 19440100c11cacf1b533acb95d6ba201f176dc3f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 22 Apr 2022 13:25:00 +0200 >Subject: [PATCH] Bug 30596: Prevent api/v1/acquisitions_baskets.t and > api/v1/acquisitions_funds.t to fail randomly > >because of updated_on > >Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > t/db_dependent/api/v1/acquisitions_baskets.t | 1 + > t/db_dependent/api/v1/acquisitions_funds.t | 2 ++ > 2 files changed, 3 insertions(+) > >diff --git a/t/db_dependent/api/v1/acquisitions_baskets.t b/t/db_dependent/api/v1/acquisitions_baskets.t >index e3fb49765c..92261f5d88 100755 >--- a/t/db_dependent/api/v1/acquisitions_baskets.t >+++ b/t/db_dependent/api/v1/acquisitions_baskets.t >@@ -49,6 +49,7 @@ subtest 'list_managers() tests' => sub { > my $password = 'thePassword123'; > $superlibrarian->set_password( { password => $password, skip_validation => 1 } ); > my $userid = $superlibrarian->userid; >+ $superlibrarian->discard_changes; > > my $api_filter = encode_json( > { 'me.patron_id' => >diff --git a/t/db_dependent/api/v1/acquisitions_funds.t b/t/db_dependent/api/v1/acquisitions_funds.t >index 556af73d23..d4821586f1 100755 >--- a/t/db_dependent/api/v1/acquisitions_funds.t >+++ b/t/db_dependent/api/v1/acquisitions_funds.t >@@ -102,6 +102,8 @@ subtest 'list_owners() and list_users() tests' => sub { > $builder->build_object( { class => 'Koha::Patrons', value => { flags => 1 } } ); > my $password = 'thePassword123'; > $superlibrarian->set_password( { password => $password, skip_validation => 1 } ); >+ $superlibrarian->discard_changes; >+ > my $userid = $superlibrarian->userid; > > # Restrict the query to a know list of patrons >-- >2.36.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 30596
:
133656
|
133668
|
133669
|
133693
| 133845