Fix warning

This commit is contained in:
Christophe Maudoux 2021-02-16 18:49:37 +01:00
parent c1951ce3fe
commit 21ba54ca74
4 changed files with 4 additions and 3 deletions

View File

@ -138,7 +138,7 @@ count(1);
expectReject( $res, 200, 35, "Expect PE_PASSWORD_OK" );
# Check updated password in session (#2430)
my $json =
$json =
expectJSON( $client->_get("/sessions/global/$id"), 'Get session content' );
is( $json->{_password}, "test", "password updated in session" );
count(1);

View File

@ -63,4 +63,4 @@ SKIP: {
count($mainTests);
clean_sessions();
done_testing( count() );
done_testing();

View File

@ -113,6 +113,7 @@ clean_sessions();
done_testing( count() );
# Redefine LWP methods for tests
no warnings 'redefine';
sub switch {
my $type = shift;
@Lemonldap::NG::Handler::Main::_onReload = @{

View File

@ -39,7 +39,7 @@ SKIP: {
expectCookie( try( 'jkirk', 'jkirk' ) );
# Get mail reset code
my $query = getMailQuery('jkirk@trek.star');
$query = getMailQuery('jkirk@trek.star');
# Set new password
expectPortalError( updatePassword( $query, "kobayashi" ),