From 753c03f2142c59c0dc323c5a9fee88b291eb1ff5 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 21 Jan 2022 10:50:59 +0000 Subject: [PATCH] Bug 29914: Remove warn on timeout The value of the system preference 'timeout' is not correct, defaulting to 600. Caused by previous test. Actually an omission in another sub that does not seem to support 10x. Signed-off-by: Kyle M Hall (cherry picked from commit eea32e6c5d39f5ec506b5c6cc81b390fcb6f8c52) Signed-off-by: Victor Grousset/tuxayo (cherry picked from commit 5653dabab18ac8ef0029fc3e486b26ada2ca8bbd) Signed-off-by: Wainui Witika-Park --- t/db_dependent/Auth.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t index b92cc63071..e4c960d93a 100644 --- a/t/db_dependent/Auth.t +++ b/t/db_dependent/Auth.t @@ -413,6 +413,8 @@ subtest '_timeout_syspref' => sub { subtest 'check_cookie_auth' => sub { plan tests => 1; + t::lib::Mocks::mock_preference('timeout', "1d"); # back to default + my $patron = $builder->build_object({ class => 'Koha::Patrons', value => { flags => 1 } }); # Mock a CGI object with real userid param @@ -422,7 +424,6 @@ subtest 'check_cookie_auth' => sub { sub { my $var = shift; if ( $var eq 'userid' ) { return $patron->userid; } - elsif ( $var eq 'timeout' ) { return 3600; } } ); $cgi->mock('multi_param', sub {return q{}} ); -- 2.39.5