From bcb6c428f1a14a0f2b6307d67c28ae3eb5222afc Mon Sep 17 00:00:00 2001 From: Maxime Besson Date: Tue, 25 Aug 2020 17:34:10 +0200 Subject: [PATCH] Fix unit test (#2271) --- .../t/70-2F-TOTP-and-U2F-with-TTL-and-JSON.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lemonldap-ng-portal/t/70-2F-TOTP-and-U2F-with-TTL-and-JSON.t b/lemonldap-ng-portal/t/70-2F-TOTP-and-U2F-with-TTL-and-JSON.t index a1c283277..f453907d4 100644 --- a/lemonldap-ng-portal/t/70-2F-TOTP-and-U2F-with-TTL-and-JSON.t +++ b/lemonldap-ng-portal/t/70-2F-TOTP-and-U2F-with-TTL-and-JSON.t @@ -256,7 +256,7 @@ JjTJecOOS+88fK8qL1TrYv5rapIdqUI7aQ== ); ok( $res->[2]->[0] =~ -qr%%, +qr%%, 'Notification reference found' ) or print STDERR Dumper( $res->[2]->[0] ); ok( time() + 115 <= $1 && $1 <= time() + 125, 'Right reference found' ) @@ -284,14 +284,14 @@ qr%

1 expired second factor\(s\) has/have been removed!

% ); ok( $res->[2]->[0] =~ -qr%%, +qr%%, 'Notification reference found' ) or print STDERR Dumper( $res->[2]->[0] ); ok( time() + 115 <= $1 && $1 <= time() + 125, 'Right reference found' ) or print STDERR Dumper( $res->[2]->[0] ), time(), " / $1"; ok( $res->[2]->[0] =~ -qr%%, +qr%%, 'Notification reference found' ) or print STDERR Dumper( $res->[2]->[0] ); ok( time() + 295 <= $1 && $1 <= time() + 305, 'Right reference found' )