Skip to content

Commit f17c4cb

Browse files
committed
Try fixing tests
1 parent 1b736bf commit f17c4cb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

t/024-access/sanity.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
use Test::Nginx::Socket::Lua::Stream;
33
#worker_connections(1014);
44
#no_nginx_manager();
5-
log_level('debug');
5+
#log_level('debug');
66
#master_on();
77

88
repeat_each(2);
99

10-
plan tests => repeat_each() * (blocks() * 2 + 3);
10+
plan tests => repeat_each() * (blocks() * 2);
1111

1212
#no_diff();
1313
#no_long_string();

t/132-lua-blocks.t

+5-3
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,11 @@ close: 1 nil
207207
glob = glob .. ", init worker }here{"
208208
}
209209
--- stream_server_config
210+
set $a '';
210211
access_by_lua_block {
211-
local s = ngx.var.a
212-
s = s .. '}access{\n'
213-
ngx.var.a = s
212+
local s = ngx.var.a
213+
s = s .. '}access{\n'
214+
ngx.var.a = s
214215
}
215216
content_by_lua_block {
216217
s = [[}content{]]
@@ -224,6 +225,7 @@ close: 1 nil
224225
225226
--- config
226227
--- stream_response
228+
}access{
227229
}content{
228230
glob: init by lua }here{, init worker }here{
229231

0 commit comments

Comments
 (0)