Mercurial > hg > ngx_http_gunzip_filter_module
diff t/gunzip_ssi.t @ 21:c0301992025a draft default tip
Gunzip: tests cleanup.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 07 Sep 2012 19:38:56 +0400 |
parents | 1adc6718cc05 |
children |
line wrap: on
line diff
--- a/t/gunzip_ssi.t +++ b/t/gunzip_ssi.t @@ -20,23 +20,20 @@ select STDOUT; $| = 1; eval { require IO::Compress::Gzip; }; Test::More::plan(skip_all => "IO::Compress::Gzip not found") if $@; -my $t = Test::Nginx->new()->has(qw/http ssi proxy gzip_static/)->plan(4); +my $t = Test::Nginx->new()->has(qw/http gunzip ssi proxy gzip_static/) + ->plan(4); $t->write_file_expand('nginx.conf', <<'EOF'); -master_process off; +%%TEST_GLOBALS%% + daemon off; events { } http { - access_log off; - root %%TESTDIR%%; - - client_body_temp_path %%TESTDIR%%/client_body_temp; - fastcgi_temp_path %%TESTDIR%%/fastcgi_temp; - proxy_temp_path %%TESTDIR%%/proxy_temp; + %%TEST_GLOBALS_HTTP%% server { listen 127.0.0.1:8080;