We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a7c1d commit dbd157fCopy full SHA for dbd157f
t/119-config-prefix.t
@@ -1,5 +1,5 @@
1
# vim:set ft= ts=4 sw=4 et fdm=marker:
2
-use Test::Nginx::Socket::Lua;
+use Test::Nginx::Socket::Lua::Stream;
3
4
#worker_connections(1014);
5
#master_on();
@@ -18,15 +18,11 @@ run_tests();
18
__DATA__
19
20
=== TEST 1: content_by_lua
21
---- config
22
- location /lua {
23
- content_by_lua '
24
- ngx.say("prefix: ", ngx.config.prefix())
25
- ';
+--- stream_server_config
+ content_by_lua_block {
+ ngx.say("prefix: ", ngx.config.prefix())
26
}
27
---- request
28
-GET /lua
29
---- response_body_like chop
+--- stream_response_like chop
30
^prefix: \/\S+$
31
--- no_error_log
32
[error]
0 commit comments