From 5d22cf9cd87a63da7fb23facbca80a1fd9ddc85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20OUDOT?= Date: Sun, 4 Oct 2020 17:16:02 +0200 Subject: [PATCH] Force logout in unit test (#2336) --- lemonldap-ng-portal/t/61-AdaptativeAuthenticationLevel.t | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-portal/t/61-AdaptativeAuthenticationLevel.t b/lemonldap-ng-portal/t/61-AdaptativeAuthenticationLevel.t index d2ffa81d7..a4116aa78 100644 --- a/lemonldap-ng-portal/t/61-AdaptativeAuthenticationLevel.t +++ b/lemonldap-ng-portal/t/61-AdaptativeAuthenticationLevel.t @@ -11,8 +11,7 @@ my $res; my $id; my $json; -my $client = LLNG::Manager::Test->new( - { +my $client = LLNG::Manager::Test->new( { ini => { logLevel => 'error', authentication => 'Demo', @@ -51,6 +50,9 @@ $json = expectJSON($res); ok( $json == 3, 'Authentication level upgraded' ); count(1); +ok( $client->logout($id), 'Logout' ); +count(1); + ok( $res = $client->_post( '/', @@ -76,6 +78,9 @@ $json = expectJSON($res); ok( $json == 5, 'Authentication level upgraded' ); count(1); +ok( $client->logout($id), 'Logout' ); +count(1); + clean_sessions(); done_testing( count() );