Not failing locally, but on D10: koha_1 | koha_1 | # Failed test 'Enqueue MARCImportCommitBatch with mock throws exception' koha_1 | # at t/db_dependent/Koha/BackgroundJob.t line 85. koha_1 | # expecting: Koha::Exceptions::BackgroundJob koha_1 | # found: normal exit koha_1 | # Looks like you planned 10 tests but ran 2. koha_1 | # Looks like you failed 1 test of 2 run. koha_1 | koha_1 | # Failed test 'enqueue() tests' koha_1 | # at t/db_dependent/Koha/BackgroundJob.t line 128. koha_1 | Can't locate object method "unmock" via package "0" (perhaps you forgot to load "0"?) at t/db_dependent/Koha/BackgroundJob.t line 87. koha_1 | # Looks like your test exited with 255 just after 2. koha_1 | [14:12:00] t/db_dependent/Koha/BackgroundJob.t ......................................... koha_1 | Dubious, test returned 255 (wstat 65280, 0xff00) koha_1 | Failed 4/5 subtests Coudl this be related to bug 35507 or bug 30734?
Created attachment 161694 [details] [review] Bug 35962: (bug 35843 follow-up) Fix BackgroundJob.t on D10
Pushed for 24.05! Well done everyone, thank you!
It looks like D10 is still unhappy - could you have another look at it?
Created attachment 161771 [details] [review] Bug 35962: (bug 35843 follow-up 2) Fix BackgroundJob.t on D10
Sorry, I simplified the code that was passing on D10, but only tested on D12 it seems...
https://github.com/geofffranks/test-mockmodule/issues/34
I pushed the second patch to master.
(In reply to Jonathan Druart from comment #7) > I pushed the second patch to master. I am still here you know ;) But it's good. I was just about to.
Pushed to 23.11.x for 23.11.03
Backported to 23.05.x for upcoming 23.05.09