From d7669ae2a96d570a6f4de2b60bd207799c69142b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 31 Jan 2024 16:44:47 +0100 Subject: [PATCH] Bug 35962: (bug 35843 follow-up) Fix BackgroundJob.t on D10 Signed-off-by: Katrin Fischer --- t/db_dependent/Koha/BackgroundJob.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/BackgroundJob.t b/t/db_dependent/Koha/BackgroundJob.t index 2d3c33e41b..a5ca4351bd 100755 --- a/t/db_dependent/Koha/BackgroundJob.t +++ b/t/db_dependent/Koha/BackgroundJob.t @@ -80,7 +80,7 @@ subtest 'enqueue() tests' => sub { 'Enqueue BatchUpdateItem without data throws exception'; # The following test needs a mock to trigger the exception - my $mock = Test::MockModule->new('Net::Stomp')->mock( 'send_with_receipt', 0 ); + my $mock = Test::MockModule->new('Net::Stomp')->mock( 'send_with_receipt', sub { 0 } ); throws_ok { Koha::BackgroundJob::MARCImportCommitBatch->new->enqueue } 'Koha::Exceptions::BackgroundJob', 'Enqueue MARCImportCommitBatch with mock throws exception'; -- 2.20.1