diff --git a/t/024-access/sanity.t b/t/024-access/sanity.t index 4e1263e4..1c88b8f4 100644 --- a/t/024-access/sanity.t +++ b/t/024-access/sanity.t @@ -2,12 +2,12 @@ use Test::Nginx::Socket::Lua::Stream; #worker_connections(1014); #no_nginx_manager(); -log_level('debug'); +#log_level('debug'); #master_on(); repeat_each(2); -plan tests => repeat_each() * (blocks() * 2 + 3); +plan tests => repeat_each() * (blocks() * 2); #no_diff(); #no_long_string(); diff --git a/t/132-lua-blocks.t b/t/132-lua-blocks.t index 52c5917c..d24fb8dc 100644 --- a/t/132-lua-blocks.t +++ b/t/132-lua-blocks.t @@ -207,10 +207,11 @@ close: 1 nil glob = glob .. ", init worker }here{" } --- stream_server_config + set $a ''; access_by_lua_block { - local s = ngx.var.a - s = s .. '}access{\n' - ngx.var.a = s + local s = ngx.var.a + s = s .. '}access{\n' + ngx.var.a = s } content_by_lua_block { s = [[}content{]] @@ -224,6 +225,7 @@ close: 1 nil --- config --- stream_response +}access{ }content{ glob: init by lua }here{, init worker }here{