From 35805611c8ad0637f57880f3230d359bcc87d7a3 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 30 Dec 2020 15:06:56 +0100 Subject: [PATCH] Bug 27317: (Bug 27127 follow-up) fix t/db_dependent/Koha/BackgroundJobs.t Bug 27127 changed Koha::BackgroundJob->messages to return arrayref instead of array. This impacts Unit Test t/db_dependent/Koha/BackgroundJobs.t failling on : not ok 10 - 10 messages generated Test plan : prove t/db_dependent/Koha/BackgroundJobs.t Signed-off-by: Tomas Cohen Arazi Edit: I fixed the indentation of the test label. Signed-off-by: Victor Grousset/tuxayo --- t/db_dependent/Koha/BackgroundJobs.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/BackgroundJobs.t b/t/db_dependent/Koha/BackgroundJobs.t index 72280d059e..f678e20635 100755 --- a/t/db_dependent/Koha/BackgroundJobs.t +++ b/t/db_dependent/Koha/BackgroundJobs.t @@ -73,7 +73,7 @@ $new_job->status('new')->store; $new_job = t::lib::Koha::BackgroundJob::BatchTest->process( { job_id => $new_job->id } ); is( $new_job->status, "finished", 'job is new finished!' ); -is( scalar( $new_job->messages ), 10, '10 messages generated' ); +is( scalar( @{ $new_job->messages } ), 10, '10 messages generated' ); is_deeply( $new_job->report, { total_records => 10, total_success => 10 }, -- 2.29.2