Bugzilla – Attachment 133669 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.67 KB, created by
Jonathan Druart
on 2022-04-22 11:28:33 UTC
(
hide
)
Description:
Bug 30596: Prevent api/v1/acquisitions_baskets.t and api/v1/acquisitions_funds.t to fail randomly
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-04-22 11:28:33 UTC
Size:
1.67 KB
patch
obsolete
>From 41b8d0e46bde31b46e529deb12f1d63b4381a48c 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 >--- > 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 e3fb49765c1..92261f5d88f 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 556af73d234..d4821586f12 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.25.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 30596
:
133656
|
133668
|
133669
|
133693
|
133845