From cb3a0f7f00502149b7b53393c3cd3c4f2c00c9a4 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Wed, 20 Mar 2024 09:12:54 +0100
Subject: [PATCH] Bug 36367: Fix BackgroundJob.t

This test is useless it seems, it is not testing background jobs
behaviour.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
---
 t/db_dependent/Koha/BackgroundJob.t | 1 +
 1 file changed, 1 insertion(+)

diff --git a/t/db_dependent/Koha/BackgroundJob.t b/t/db_dependent/Koha/BackgroundJob.t
index 8511551adc..f34b695c49 100755
--- a/t/db_dependent/Koha/BackgroundJob.t
+++ b/t/db_dependent/Koha/BackgroundJob.t
@@ -230,6 +230,7 @@ subtest 'process tests' => sub {
     my $job    = Koha::BackgroundJobs->find($job_id);
 
     C4::Context->interface('opac');
+    C4::Context->unset_userenv;
     is( C4::Context->userenv, undef, "Userenv unset prior to calling process");
     is( C4::Context->interface, 'opac', "Interface set to opac prior to calling process");
 
-- 
2.30.2