Fix Tests

This commit is contained in:
Christophe Maudoux 2018-12-30 17:27:42 +01:00
parent 49655091a6
commit 399afe013c

View File

@ -260,9 +260,9 @@ sub tests {
}, },
# Warn if session timeout is lower than 10 minutes # Warn if session timeout is lower than 10 minutes
timeoutActivity => sub { sessionTimeout => sub {
return 1 unless ( defined $conf->{timeout} ); return 1 unless ( defined $conf->{timeout} );
return ( 1, "Session timeout should be higher than ten minutes" ) return ( -1, "Session timeout should be higher than ten minutes" )
unless ( $conf->{timeout} > 600 unless ( $conf->{timeout} > 600
|| $conf->{timeout} == 0 ); || $conf->{timeout} == 0 );
@ -271,7 +271,7 @@ sub tests {
}, },
# Error if session Activity Timeout is equal or lower than one minute # Error if session Activity Timeout is equal or lower than one minute
timeoutActivity => sub { sessionTimeoutActivity => sub {
return 1 unless ( defined $conf->{timeoutActivity} ); return 1 unless ( defined $conf->{timeoutActivity} );
return ( 0, return ( 0,
"Session activity timeout must be higher or equal than one minute" "Session activity timeout must be higher or equal than one minute"