Skip to content

Commit 19cc6bf

Browse files
committed
tests: fixed a test case that cannot be run in parallel test jobs.
1 parent 4ff3dd1 commit 19cc6bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/138-balancer.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ qr{\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\
307307
308308
=== TEST 12: code cache off
309309
--- http_config
310-
lua_package_path "t/servroot/html/?.lua;;";
310+
lua_package_path "$TEST_NGINX_SERVER_ROOT/html/?.lua;;";
311311
312312
lua_code_cache off;
313313
@@ -327,7 +327,7 @@ qr{\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\
327327
location = /update {
328328
content_by_lua_block {
329329
-- os.execute("(echo HERE; pwd) > /dev/stderr")
330-
local f = assert(io.open("t/servroot/html/test.lua", "w"))
330+
local f = assert(io.open("$TEST_NGINX_SERVER_ROOT/html/test.lua", "w"))
331331
f:write("print('me: ', 101)")
332332
f:close()
333333
ngx.say("updated")

0 commit comments

Comments
 (0)