Bugzilla – Attachment 161771 Details for
Bug 35962
t/db_dependent/Koha/BackgroundJob.t failing on D10
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35962: (bug 35843 follow-up 2) Fix BackgroundJob.t on D10
Bug-35962-bug-35843-follow-up-2-Fix-BackgroundJobt.patch (text/plain), 1.11 KB, created by
Jonathan Druart
on 2024-02-06 07:32:53 UTC
(
hide
)
Description:
Bug 35962: (bug 35843 follow-up 2) Fix BackgroundJob.t on D10
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-02-06 07:32:53 UTC
Size:
1.11 KB
patch
obsolete
>From 9e0d32a915cef9be16f21e066c5e5beff17f52ab Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 6 Feb 2024 08:32:31 +0100 >Subject: [PATCH] Bug 35962: (bug 35843 follow-up 2) Fix BackgroundJob.t on D10 > >--- > t/db_dependent/Koha/BackgroundJob.t | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/BackgroundJob.t b/t/db_dependent/Koha/BackgroundJob.t >index a5ca4351bdc..5db21a0b34a 100755 >--- a/t/db_dependent/Koha/BackgroundJob.t >+++ b/t/db_dependent/Koha/BackgroundJob.t >@@ -80,7 +80,8 @@ 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', sub { 0 } ); >+ my $mock = Test::MockModule->new('Net::Stomp'); >+ $mock->mock( 'send_with_receipt', sub { 0 } ); > throws_ok { Koha::BackgroundJob::MARCImportCommitBatch->new->enqueue } > 'Koha::Exceptions::BackgroundJob', > 'Enqueue MARCImportCommitBatch with mock throws exception'; >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35962
:
161694
| 161771