Fix warning
This commit is contained in:
parent
c1951ce3fe
commit
21ba54ca74
|
@ -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);
|
||||
|
|
|
@ -63,4 +63,4 @@ SKIP: {
|
|||
|
||||
count($mainTests);
|
||||
clean_sessions();
|
||||
done_testing( count() );
|
||||
done_testing();
|
||||
|
|
|
@ -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 = @{
|
||||
|
|
|
@ -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" ),
|
||||
|
|
Loading…
Reference in New Issue