Skip to content

Commit 5b499ba

Browse files
committed
Fix test error on OpenBSD 6.8
1 parent 7416597 commit 5b499ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/03-verify-bad-cert.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ my $ret;
3939
eval {
4040
$ret = $v->verify($cert);
4141
};
42-
ok($@ =~ /(verify: unable to get local)|(verify: unknown certificate)/);
42+
ok($@ =~ /(verify: certificate has expired)|(verify: unable to get local)|(verify: unknown certificate)/);
4343
ok(!$ret);
4444

4545
$v = Crypt::OpenSSL::Verify->new(
@@ -55,7 +55,7 @@ $ret = undef;
5555
eval {
5656
$ret = $v->verify($cert);
5757
};
58-
ok($@ =~ /(verify: unable to get local)|(verify: unknown certificate)/);
58+
ok($@ =~ /(verify: certificate has expired)|(verify: unable to get local)|(verify: unknown certificate)/);
5959
ok(!$ret);
6060

6161
done_testing;

0 commit comments

Comments
 (0)