Skip to content

Commit 6f124f0

Browse files
tests: wrong pid path when running jobs greater than 1. (#277)
1 parent dfc9bc1 commit 6f124f0

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
@@ -27,7 +27,8 @@ __DATA__
2727
=== TEST 1: exiting
2828
--- stream_server_config
2929
content_by_lua_block {
30-
local f, err = io.open("t/servroot/logs/nginx.pid", "r")
30+
local pidfile = ngx.config.prefix() .. "/logs/nginx.pid"
31+
local f, err = io.open(pidfile, "r")
3132
if not f then
3233
ngx.say("failed to open nginx.pid: ", err)
3334
return

0 commit comments

Comments
 (0)