changeset 590:dc2f8aac0553

Tests: whitespace fixes.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 26 May 2015 13:22:45 +0300
parents a9569f57da98
children 0b059d5e6887
files gunzip_memcached.t range.t realip.t scgi.t scgi_body.t secure_link.t uwsgi.t
diffstat 7 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/gunzip_memcached.t
+++ b/gunzip_memcached.t
@@ -82,7 +82,7 @@ if ($memhelp =~ /-U/) {
 my $memd = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ],
 	compress_threshold => 1, connect_timeout => 1.0);
 $memd->set('/', 'TEST' x 10)
-        or die "can't put value into memcached: $!";
+	or die "can't put value into memcached: $!";
 
 ###############################################################################
 
--- a/range.t
+++ b/range.t
@@ -118,7 +118,7 @@ like($t1, qr/X001XXXXXX\x0d?$/m, 'multip
 $t1 = http_get_range('/t1.html', 'Range: bytes=0-9, -10, 100000-, 10-19');
 like($t1, qr/ 206 /, 'multipart big - 206 partial reply');
 like($t1, qr/Content-Type: multipart\/byteranges; boundary=/,
-        'multipart big - content type');
+	'multipart big - content type');
 like($t1, qr/X000XXXXXX/m, 'multipart big - content 0-9');
 like($t1, qr/^X099XXXXXX\x0d?$/m, 'multipart big - content -10 aka 990-999');
 like($t1, qr/X001XXXXXX\x0d?$/m, 'multipart big - content 10-19');
--- a/realip.t
+++ b/realip.t
@@ -71,7 +71,7 @@ plan(skip_all => 'no 127.0.0.1 on host')
 
 like(http_xff('/1', '192.0.2.1'), qr/^X-IP: 192.0.2.1/m, 'realip');
 like(http_xff('/1', '10.0.0.1, 192.0.2.1'), qr/^X-IP: 192.0.2.1/m,
-        'realip multi');
+	'realip multi');
 like(http_xff('/1', '192.0.2.1, 10.0.1.1, 127.0.0.1'),
 	qr/^X-IP: 127.0.0.1/m, 'realip recursive off');
 like(http_xff('/2', '10.0.1.1, 192.0.2.1, 127.0.0.1'),
--- a/scgi.t
+++ b/scgi.t
@@ -69,8 +69,8 @@ like(http_get_headers('/headers'), qr/SE
 ###############################################################################
 
 sub http_get_headers {
-        my ($url, %extra) = @_;
-        return http(<<EOF, %extra);
+	my ($url, %extra) = @_;
+	return http(<<EOF, %extra);
 GET $url HTTP/1.0
 Host: localhost
 X-Blah: ignored header
--- a/scgi_body.t
+++ b/scgi_body.t
@@ -87,9 +87,9 @@ EOF
 ###############################################################################
 
 sub http_get_length {
-        my ($url, $body) = @_;
-        my $length = length $body;
-        return http(<<EOF);
+	my ($url, $body) = @_;
+	my $length = length $body;
+	return http(<<EOF);
 GET $url HTTP/1.1
 Host: localhost
 Connection: close
--- a/secure_link.t
+++ b/secure_link.t
@@ -135,12 +135,12 @@ my ($expires, $hash);
 $expires = time() + 86400;
 $hash = encode_base64url(md5("secret/expires.html$expires"));
 like(http_get('/expires.html?hash=' . $hash . '&expires=' . $expires),
-        qr/PASSED/, 'request md5 not expired');
+	qr/PASSED/, 'request md5 not expired');
 
 $expires = time() - 86400;
 $hash = encode_base64url(md5("secret/expires.html$expires"));
 like(http_get('/expires.html?hash=' . $hash . '&expires=' . $expires),
-        qr/^HTTP.*403/, 'request md5 expired');
+	qr/^HTTP.*403/, 'request md5 expired');
 
 # old style
 
@@ -154,10 +154,10 @@ like(http_get('/inheritance/test'), qr/P
 ###############################################################################
 
 sub encode_base64url {
-    my $e = encode_base64(shift, "");
-    $e =~ s/=+\z//;
-    $e =~ tr[+/][-_];
-    return $e;
+	my $e = encode_base64(shift, "");
+	$e =~ s/=+\z//;
+	$e =~ tr[+/][-_];
+	return $e;
 }
 
 ###############################################################################
--- a/uwsgi.t
+++ b/uwsgi.t
@@ -84,8 +84,8 @@ like(http_get_headers('/headers'), qr/SE
 ###############################################################################
 
 sub http_get_headers {
-        my ($url, %extra) = @_;
-        return http(<<EOF, %extra);
+	my ($url, %extra) = @_;
+	return http(<<EOF, %extra);
 GET $url HTTP/1.0
 Host: localhost
 X-Blah: ignored header