Skip to content

Commit

Permalink
add minimal test for certificate compression
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Feb 13, 2019
1 parent 0e53702 commit 03048cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/e2e.t
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ subtest "early-data" => sub {
};
};

subtest "certificate-compression" => sub {
plan skip_all => "feature disabled"
unless system("$cli -b -h > /dev/null 2>&1") == 0;
my $guard = spawn_server(qw(-i t/assets/hello.txt -b));
my $resp = `$cli 127.0.0.1 $port 2> /dev/null`;
isnt $resp, "hello";
$resp = `$cli -b 127.0.0.1 $port 2> /dev/null`;
is $resp, "hello";
};

done_testing;

sub spawn_server {
Expand Down

0 comments on commit 03048cb

Please sign in to comment.