Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion t/bug.t
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ our $HttpConfig = qq{
lua_package_cpath "/usr/local/openresty-debug/lualib/?.so;/usr/local/openresty/lualib/?.so;;";
};

$ENV{TEST_NGINX_RESOLVER} = '8.8.8.8';
$ENV{TEST_NGINX_HTML_DIR} = $HtmlDir;

no_long_string();
Expand Down
1 change: 0 additions & 1 deletion t/flush.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ our $HttpConfig = qq{
lua_package_cpath "/usr/local/openresty-debug/lualib/?.so;/usr/local/openresty/lualib/?.so;;";
};

$ENV{TEST_NGINX_RESOLVER} = '8.8.8.8';
$ENV{TEST_NGINX_HTML_DIR} = $HtmlDir;

no_long_string();
Expand Down
1 change: 0 additions & 1 deletion t/proto.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ our $HttpConfig = qq{
lua_package_cpath "/usr/local/openresty-debug/lualib/?.so;/usr/local/openresty/lualib/?.so;;";
};

$ENV{TEST_NGINX_RESOLVER} = '8.8.8.8';
$ENV{TEST_NGINX_HTML_DIR} = $HtmlDir;

no_long_string();
Expand Down
1 change: 0 additions & 1 deletion t/sanity.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ our $HttpConfig = qq{
lua_package_cpath "/usr/local/openresty-debug/lualib/?.so;/usr/local/openresty/lualib/?.so;;";
};

$ENV{TEST_NGINX_RESOLVER} = '8.8.8.8';
$ENV{TEST_NGINX_HTML_DIR} = $HtmlDir;

no_long_string();
Expand Down
8 changes: 4 additions & 4 deletions t/timeout.t
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ our $HttpConfig = qq{
lua_package_cpath "/usr/local/openresty-debug/lualib/?.so;/usr/local/openresty/lualib/?.so;;";
};

$ENV{TEST_NGINX_RESOLVER} = '8.8.8.8';
$ENV{TEST_NGINX_RESOLVER} ||= '8.8.8.8';
$ENV{TEST_NGINX_HTML_DIR} = $HtmlDir;

no_long_string();
Expand All @@ -55,7 +55,7 @@ __DATA__
=== TEST 1: connect timeout
--- http_config eval: $::HttpConfig
--- config
resolver 8.8.8.8;
resolver $TEST_NGINX_RESOLVER;
location /t {
content_by_lua '
-- visit agentzh.org first to get DNS resolve done, then the
Expand Down Expand Up @@ -172,7 +172,7 @@ foo
=== TEST 4: return previous log error
--- http_config eval: $::HttpConfig
--- config
resolver 8.8.8.8;
resolver $TEST_NGINX_RESOLVER;
log_subrequest on;
location /main {
content_by_lua '
Expand Down Expand Up @@ -237,7 +237,7 @@ foo
=== TEST 5: flush race condition
--- http_config eval: $::HttpConfig
--- config
resolver 8.8.8.8;
resolver $TEST_NGINX_RESOLVER;
location /t {
content_by_lua '
-- visit agentzh.org first to get DNS resolve done, then the
Expand Down