1 # vim:set ft= ts=4 sw=4 et fdm=marker:
3 use Test::Nginx::Socket::Lua;
5 #worker_connections(1014);
12 plan tests => repeat_each() * (blocks() * 3);
20 === TEST 1: content_by_lua
23 content_by_lua_block {
24 ngx.say("workers: ", ngx.worker.count())
36 === TEST 2: init_by_lua
39 package.loaded.count = ngx.worker.count()
43 content_by_lua_block {
44 ngx.say("workers: ", package.loaded.count)
56 === TEST 3: init_worker_by_lua
58 init_worker_by_lua_block {
59 init_worker_count = ngx.worker.count()
63 content_by_lua_block {
64 ngx.say("workers: ", init_worker_count)