Skip to content

Commit

Permalink
Try fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arcivanov committed Nov 10, 2020
1 parent 1b736bf commit eeca371
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions t/024-access/sanity.t
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
10 changes: 5 additions & 5 deletions t/132-lua-blocks.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use Test::Nginx::Socket::Lua::Stream;
repeat_each(2);
#repeat_each(1);

plan tests => repeat_each() * ((blocks() * 3) + 1);
plan tests => repeat_each() * ((blocks() * 3) + 3);

#no_diff();
no_long_string();
Expand Down Expand Up @@ -208,12 +208,11 @@ close: 1 nil
}
--- stream_server_config
access_by_lua_block {
local s = ngx.var.a
s = s .. '}access{\n'
ngx.var.a = s
local s = '}access{\n'
ngx.ctx.a = s
}
content_by_lua_block {
s = [[}content{]]
local s = ngx.ctx.a .. [[}content{]]
ngx.ctx.a = s
ngx.say(s)
ngx.say("glob: ", glob)
Expand All @@ -224,6 +223,7 @@ close: 1 nil

--- config
--- stream_response
}access{
}content{
glob: init by lua }here{, init worker }here{

Expand Down

0 comments on commit eeca371

Please sign in to comment.