Skip to content

Commit

Permalink
Fix unit test after 3b77039
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Henning Thorsen committed Jan 15, 2021
1 parent 3b77039 commit fac24f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Convos/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ sub generate_cert_p {
warn "\$ $ENV{OPENSSL_BIN} @openssl\n" if DEBUG;
return Mojo::IOLoop->subprocess->run_p(sub {
open STDERR, '>', File::Spec->devnull;
local $!, $?;
local ($!, $?);
system $ENV{OPENSSL_BIN} => @openssl;
die "$ENV{OPENSSL_BIN} @openssl FAIL $? / $!" if $? or $!;
return \%params;
Expand Down
2 changes: 1 addition & 1 deletion t/util-generate-cert.t
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ subtest 'generate with input' => sub {

subtest 'test that defaults got set' => sub {
is $ENV{OPENSSL_BITS}, 4096, "OPENSSL_BITS=$ENV{OPENSSL_BITS}";
is $ENV{OPENSSL_COUNTRY}, '', "OPENSSL_COUNTRY=$ENV{OPENSSL_COUNTRY}";
is $ENV{OPENSSL_COUNTRY}, 'NO', "OPENSSL_COUNTRY=$ENV{OPENSSL_COUNTRY}";
is $ENV{OPENSSL_DAYS}, 3650, "OPENSSL_DAYS=$ENV{OPENSSL_DAYS}";
is $ENV{OPENSSL_ORGANIZATION}, 'Convos', "OPENSSL_ORGANIZATION=$ENV{OPENSSL_ORGANIZATION}";
};
Expand Down

0 comments on commit fac24f0

Please sign in to comment.