Commit 50316f2e authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

Fix unit tests (#1605)

parent aab0dcca
Pipeline #7629 failed with stages
in 18 minutes and 44 seconds
......@@ -358,7 +358,7 @@ lkRrWfQftwmLyNIu3HfSgXlgAZS30ymfbzBU
$trmsg = $trmsg[0]; # get the first one only
$trmsg =~ s/.*trmsg="([0-9]+)".*/$1/g; # get error code number
ok( $trmsg == PE_RESETCERTIFICATE_INVALID, 'Invalid certificate' );
}
count($maintests);
done_testing( count() );
......@@ -5,6 +5,11 @@ use strict;
use IO::String;
use File::Copy;
use Lemonldap::NG::Portal::Main::Constants qw(
PE_RESETCERTIFICATE_INVALID PE_RESETCERTIFICATE_FORMEMPTY
PE_RESETCERTIFICATE_FIRSTACCESS
);
BEGIN {
eval {
require 't/test-lib.pm';
......@@ -358,8 +363,8 @@ lkRrWfQftwmLyNIu3HfSgXlgAZS30ymfbzBU
$trmsg = $trmsg[0]; # get the first one only
$trmsg =~ s/.*trmsg="([0-9]+)".*/$1/g; # get error code number
ok( $trmsg == PE_RESETCERTIFICATE_INVALID, 'Invalid certificate' );
}
count($maintests);
stopLdapServer() if $ENV{LLNGTESTLDAP};
done_testing( count() );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment