File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
use Test::Nginx::Socket::Lua::Stream;
3
3
# worker_connections(1014);
4
4
# no_nginx_manager();
5
- log_level(' debug' );
5
+ # log_level('debug');
6
6
# master_on();
7
7
8
8
repeat_each(2);
9
9
10
- plan tests => repeat_each() * (blocks() * 2 + 3 );
10
+ plan tests => repeat_each() * (blocks() * 2);
11
11
12
12
# no_diff();
13
13
# no_long_string();
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use Test::Nginx::Socket::Lua::Stream;
9
9
repeat_each(2 );
10
10
# repeat_each(1);
11
11
12
- plan tests => repeat_each() * ((blocks() * 3 ) + 1 );
12
+ plan tests => repeat_each() * ((blocks() * 3 ) + 3 );
13
13
14
14
# no_diff();
15
15
no_long_string();
@@ -208,12 +208,11 @@ close: 1 nil
208
208
}
209
209
--- stream_server_config
210
210
access_by_lua_block {
211
- local s = ngx. var. a
212
- s = s .. ' }access{\n'
213
- ngx. var. a = s
211
+ local s = '}access{\n'
212
+ ngx. ctx. a = s
214
213
}
215
214
content_by_lua_block {
216
- s = [[}content{ ]]
215
+ local s = ngx . ctx . a .. [[}content{ ]]
217
216
ngx. ctx. a = s
218
217
ngx. say (s)
219
218
ngx. say (" glob: " , glob)
@@ -224,6 +223,7 @@ close: 1 nil
224
223
225
224
--- config
226
225
--- stream_response
226
+ }access{
227
227
} content{
228
228
glob: init by lua } here{ , init worker } here{
229
229
You can’t perform that action at this time.
0 commit comments