Fix unit tests warning (#2406)

This commit is contained in:
Christophe Maudoux 2020-12-11 00:10:22 +01:00
parent 90d2dc58b7
commit 2dde8672d5
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ sub check {
and $req->param('secret') eq $self->conf->{checkStateSecret} );
$req->steps( [ 'controlUrl', @{ $self->p->beforeAuth } ] );
my $res = $self->p->process($req);
if ( $res > 0 ) {
if ( $res && $res > 0 ) {
push @rep, "Bad result before auth: $res";
}

View File

@ -9,8 +9,7 @@ require 't/smtp.pm';
use_ok('Lemonldap::NG::Common::FormEncode');
count(1);
my $client = LLNG::Manager::Test->new(
{
my $client = LLNG::Manager::Test->new( {
ini => {
logLevel => 'error',
mail2fActivation => 1,
@ -18,7 +17,8 @@ my $client = LLNG::Manager::Test->new(
authentication => 'Demo',
userDB => 'Same',
mailSessionKey => 'mail',
macros => { 'mail2f' => '"test\@example.com"', },
macros =>
{ mail2f => '"test\@example.com"', _whatToTrace => '$uid' },
mail2fSessionKey => 'mail2f',
}
}