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 f17c4cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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
8 changes: 5 additions & 3 deletions t/132-lua-blocks.t
Original file line number Diff line number Diff line change
Expand Up @@ -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{]]
Expand All @@ -224,6 +225,7 @@ close: 1 nil

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

Expand Down

0 comments on commit f17c4cb

Please sign in to comment.