@@ -111,7 +111,7 @@ Verify that both paths can be set simultaneously
111111 local cpath = package.cpath
112112 local lua_found = string.find(path, "/test/lua/?.lua", 1, true)
113113 local so_found = string.find(cpath, "/test/so/?.so", 1, true)
114-
114+
115115 if lua_found and so_found then
116116 ngx.say("FOUND: both extra_lua_path and extra_lua_cpath")
117117 else
@@ -138,7 +138,7 @@ Verify that extra_lua_path is at the beginning of package.path
138138 -- Check if custom path appears before apisix_home
139139 local custom_pos = string.find(path, "/first/path/?.lua", 1, true)
140140 local apisix_pos = string.find(path, "/apisix/?.lua", 1, true)
141-
141+
142142 if custom_pos and apisix_pos and custom_pos < apisix_pos then
143143 ngx.say("SUCCESS: extra_lua_path is prepended correctly")
144144 else
@@ -167,7 +167,7 @@ apisix:
167167 local path = package.path
168168 local block_found = string.find(path, "/block/path/?.lua", 1, true)
169169 local yaml_found = string.find(path, "/yaml/path/?.lua", 1, true)
170-
170+
171171 if block_found and not yaml_found then
172172 ngx.say("SUCCESS: block definition takes precedence")
173173 elseif yaml_found and not block_found then
@@ -183,4 +183,3 @@ apisix:
183183GET /t
184184--- response_body
185185SUCCESS: block definition takes precedence
186-
0 commit comments