Skip to content

Commit dbd157f

Browse files
committed
transform test case 119-config-prefix.t from ngx_http_lua to ngx_stream_lua
1 parent e3a7c1d commit dbd157f

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

t/119-config-prefix.t

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# vim:set ft= ts=4 sw=4 et fdm=marker:
2-
use Test::Nginx::Socket::Lua;
2+
use Test::Nginx::Socket::Lua::Stream;
33

44
#worker_connections(1014);
55
#master_on();
@@ -18,15 +18,11 @@ run_tests();
1818
__DATA__
1919

2020
=== TEST 1: content_by_lua
21-
--- config
22-
location /lua {
23-
content_by_lua '
24-
ngx.say("prefix: ", ngx.config.prefix())
25-
';
21+
--- stream_server_config
22+
content_by_lua_block {
23+
ngx.say("prefix: ", ngx.config.prefix())
2624
}
27-
--- request
28-
GET /lua
29-
--- response_body_like chop
25+
--- stream_response_like chop
3026
^prefix: \/\S+$
3127
--- no_error_log
3228
[error]

0 commit comments

Comments
 (0)