Skip to content

Commit

Permalink
Tests: whitespace cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluknet committed May 18, 2024
1 parent 0487da7 commit 3ea9649
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion auth_basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ http {
# prepended with conf_prefix
auth_basic_user_file $arg_f;
alias %%TESTDIR%%/;
}
}
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions h2_error_page.t
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ my ($sid, $frames, $frame);

my $s1 = Test::Nginx::HTTP2->new();
$sid = $s1->new_stream({ headers => [
{ name => ':method', value => 'GET' },
{ name => ':path', value => '/' },
{ name => ':authority', value => 'localhost' }]});
{ name => ':method', value => 'GET' },
{ name => ':path', value => '/' },
{ name => ':authority', value => 'localhost' }]});
$frames = $s1->read(all => [{ type => 'RST_STREAM' }]);

($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames;
Expand Down
2 changes: 1 addition & 1 deletion h2_request_body_extra.t
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ like(http2_get_body_multi_nolen('/unbuf/', '0123456789' x 128),
'body unbuf multi nolen in two buffers');
like(http2_get_body_multi_nolen('/unbuf/', '0123456789' x 512),
qr/(?!.*x-unbuf-file.*)x-body-file/ms,
'body unbuf multi nolen in file');
'body unbuf multi nolen in file');
like(read_body_file(http2_get_body_multi_nolen('/unbuf/file',
'0123456789' x 512)), qr/^(0123456789){512}$/s,
'body unbuf multi nolen in file only');
Expand Down
2 changes: 1 addition & 1 deletion h3_request_body_extra.t
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ like(http3_get_body_multi_nolen('/unbuf/', '0123456789' x 128),
'body unbuf multi nolen in two buffers');
like(http3_get_body_multi_nolen('/unbuf/', '0123456789' x 512),
qr/(?!.*x-unbuf-file.*)x-body-file/ms,
'body unbuf multi nolen in file');
'body unbuf multi nolen in file');
like(read_body_file(http3_get_body_multi_nolen('/unbuf/file',
'0123456789' x 512)), qr/^(0123456789){512}$/s,
'body unbuf multi nolen in file only');
Expand Down
2 changes: 1 addition & 1 deletion mail_ssl.t
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ mail {
ssl_password_file password;
auth_http http://127.0.0.1:8080; # unused
auth_http http://127.0.0.1:8080; # unused
server {
listen 127.0.0.1:8143;
Expand Down
2 changes: 1 addition & 1 deletion proxy_cache_manager.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ select STDOUT; $| = 1;
plan(skip_all => 'long test') unless $ENV{TEST_NGINX_UNSAFE};

plan(skip_all => 'page size is not appropriate') unless
POSIX::sysconf(&POSIX::_SC_PAGESIZE) == 4096;
POSIX::sysconf(&POSIX::_SC_PAGESIZE) == 4096;

my $t = Test::Nginx->new()->has(qw/http proxy cache/)
->write_file_expand('nginx.conf', <<'EOF');
Expand Down
2 changes: 1 addition & 1 deletion scgi_extra_data.t
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ sub scgi_daemon {
while (my $request = $scgi->accept()) {
eval { $request->read_env(); };
next if $@;

$uri = $request->env->{REQUEST_URI};
$uri =~ s!^/unbuf!!;

Expand Down
2 changes: 1 addition & 1 deletion slice.t
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ http {
location / {
if ($http_range = "") {
set $limit_rate 100;
}
}
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions ssl.t
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ sub get_ssl_shutdown {

$s->blocking(0);
while (IO::Select->new($s)->can_read(8)) {
my $n = $s->sysread(my $buf, 16384);
next if !defined $n && $!{EWOULDBLOCK};
last;
my $n = $s->sysread(my $buf, 16384);
next if !defined $n && $!{EWOULDBLOCK};
last;
}
$s->blocking(1);

Expand Down
2 changes: 1 addition & 1 deletion ssl_certificates.t
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ my $d = $t->testdir();
system("openssl ecparam -genkey -out $d/ec.key -name prime256v1 "
. ">>$d/openssl.out 2>&1") == 0 or die "Can't create EC pem: $!\n";
system("openssl genrsa -out $d/rsa.key 2048 >>$d/openssl.out 2>&1") == 0
or die "Can't create RSA pem: $!\n";
or die "Can't create RSA pem: $!\n";

foreach my $name ('ec', 'rsa') {
system("openssl req -x509 -new -key $d/$name.key "
Expand Down
2 changes: 1 addition & 1 deletion ssl_sni_sessions.t
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ plan(skip_all => 'no TLSv1.3 sessions, old Net::SSLeay')
plan(skip_all => 'no TLSv1.3 sessions, old IO::Socket::SSL')
if $IO::Socket::SSL::VERSION < 2.061 && test_tls13();
plan(skip_all => 'no TLSv1.3 sessions in LibreSSL')
if $t->has_module('LibreSSL') && test_tls13();
if $t->has_module('LibreSSL') && test_tls13();
plan(skip_all => 'no TLS 1.3 session cache in BoringSSL')
if $t->has_module('BoringSSL') && test_tls13();

Expand Down

0 comments on commit 3ea9649

Please sign in to comment.