@@ -, +, @@ --- t/db_dependent/Auth.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/t/db_dependent/Auth.t +++ a/t/db_dependent/Auth.t @@ -444,6 +444,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 @@ -453,7 +455,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{}} ); --