Allow time drift (#2133)

merge-requests/133/head
Christophe Maudoux 5 years ago
parent d6d9d6031d
commit 2b95adaa1c
  1. 2
      lemonldap-ng-portal/t/70-2F-TOTP-with-TTL-and-JSON.t
  2. 2
      lemonldap-ng-portal/t/70-2F-TOTP-with-TTL-and-XML.t

@ -149,7 +149,7 @@ SKIP: {
qr%<input type="hidden" name="reference1x1" value="RemoveTOTP-(\d{10})">%,
'Notification reference found'
) or print STDERR Dumper( $res->[2]->[0] );
ok( $1 == time() + 300, 'Right reference found' )
ok( time() + 300 <= $1 && $1 <= time() + 305, 'Right reference found' )
or print STDERR Dumper( $res->[2]->[0] );
ok(
$res->[2]->[0] =~

@ -153,7 +153,7 @@ SKIP: {
qr%<input type="hidden" name="reference1x1" value="RemoveTOTP-(\d{10})">%,
'Notification reference found'
) or print STDERR Dumper( $res->[2]->[0] );
ok( $1 == time() + 300, 'Right reference found' )
ok( time() + 300 <= $1 && $1 <= time() + 305, 'Right reference found' )
or print STDERR Dumper( $res->[2]->[0] );
ok(
$res->[2]->[0] =~

Loading…
Cancel
Save