Skip to content

Commit a7444ab

Browse files
author
Johnny Wang
authored
tests: 160-disable-init-by-lua.t: prevent the test process from overwriting the original pid file. (#2024)
1 parent 247086e commit a7444ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/160-disable-init-by-lua.t

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ my $http_config = <<_EOC_;
1212
function set_up_ngx_tmp_conf(conf)
1313
if conf == nil then
1414
conf = [[
15+
# to prevent the test process from overwriting the
16+
# original pid file
17+
pid logs/test_nginx.pid;
1518
events {
1619
worker_connections 64;
1720
}
@@ -150,6 +153,7 @@ qr/\[error\] .*? init_by_lua:\d+: run init_by_lua/
150153
location = /t {
151154
content_by_lua_block {
152155
local conf = [[
156+
pid logs/test_nginx.pid;
153157
events {
154158
worker_connections 64;
155159
}

0 commit comments

Comments
 (0)