From 1302e87ed22ded4bdff3808f7400b0f96d872db9 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 26 Apr 2022 14:17:00 -1000 Subject: [PATCH] Bug 30072: (followup) Fix random failure of Holds_hooks.t When building Koha::Holds object, do not let 'found' random otherwise it may take a valid value indicating hold is found. See other holds unit tests. --- t/db_dependent/Koha/Plugins/Holds_hooks.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Plugins/Holds_hooks.t b/t/db_dependent/Koha/Plugins/Holds_hooks.t index 04d19929ca..54171097f3 100755 --- a/t/db_dependent/Koha/Plugins/Holds_hooks.t +++ b/t/db_dependent/Koha/Plugins/Holds_hooks.t @@ -103,7 +103,7 @@ subtest 'Koha::Hold tests' => sub { { class => 'Koha::Holds', value => { - borrowernumber => $patron->id, + borrowernumber => $patron->id, found => undef, } } ); @@ -118,7 +118,7 @@ subtest 'Koha::Hold tests' => sub { { class => 'Koha::Holds', value => { - borrowernumber => $patron->id, + borrowernumber => $patron->id, found => undef, } } ); -- 2.35.3