From 62a6aefb2ceaefc4ce45e0e633cd8467f20741ae 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. Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall --- 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 cead13cc82..d8de36afd9 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.39.2