Bug 29914: (QA follow-up) Remove warn on timeout
The warn is: The value of the system preference 'timeout' is not correct, defaulting to 600. Caused by previous test. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
408b7164c3
commit
939ccaf5c4
1 changed files with 2 additions and 1 deletions
|
@ -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{}} );
|
||||
|
|
Loading…
Reference in a new issue