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>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2022-04-22 13:25:00 +02:00 committed by Fridolin Somers
parent 01e72549ff
commit 6d4ed3b70c
2 changed files with 3 additions and 0 deletions

View File

@ -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' =>

View File

@ -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