Skip to content

Commit e682133

Browse files
tests: wrong pid path when running jobs greater than 1. (#1961)
1 parent 7516679 commit e682133

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/157-socket-keepalive-hup.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ __DATA__
3232
set $port $TEST_NGINX_SERVER_PORT;
3333
3434
content_by_lua_block {
35-
local f, err = io.open("$TEST_NGINX_SERVER_ROOT/logs/nginx.pid", "r")
35+
local pidfile = ngx.config.prefix() .. "/logs/nginx.pid"
36+
local f, err = io.open(pidfile, "r")
3637
if not f then
3738
ngx.say("failed to open nginx.pid: ", err)
3839
return

0 commit comments

Comments
 (0)