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 <fridolin.somers@biblibre.com>
This commit is contained in:
Fridolin Somers 2022-04-26 14:17:00 -10:00
parent cf8f7aafff
commit 763bfaa55b
1 changed files with 2 additions and 2 deletions

View File

@ -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,
}
}
);