From dacd0614b89da371fe1aa6c61aaa28de5e660f7d Mon Sep 17 00:00:00 2001 From: jiahao Date: Wed, 9 Mar 2022 15:11:30 +0800 Subject: [PATCH] tests: 160-disable-init-by-lua.t: prevent the test process from overwriting the original pid file. --- t/160-disable-init-by-lua.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/160-disable-init-by-lua.t b/t/160-disable-init-by-lua.t index dd0098d0d5..e98c136dcf 100644 --- a/t/160-disable-init-by-lua.t +++ b/t/160-disable-init-by-lua.t @@ -12,6 +12,9 @@ my $http_config = <<_EOC_; function set_up_ngx_tmp_conf(conf) if conf == nil then conf = [[ + # to prevent the test process from overwriting the + # original pid file + pid logs/test_nginx.pid; events { worker_connections 64; } @@ -150,6 +153,7 @@ qr/\[error\] .*? init_by_lua:\d+: run init_by_lua/ location = /t { content_by_lua_block { local conf = [[ + pid logs/test_nginx.pid; events { worker_connections 64; }