Skip to content

Commit bda2435

Browse files
committed
Use *_by_lua_block in new tests
1 parent d13e3d8 commit bda2435

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/re-find.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ qr/\[TRACE \d+ content_by_lua\(nginx\.conf:\d+\):4 loop\]/
270270
--- config
271271
location = /re {
272272
access_log off;
273-
content_by_lua '
273+
content_by_lua_block {
274274
-- ngx.re.opt("jit_stack_size", 128 * 1024)
275275
local from, to, err
276276
local find = ngx.re.find
@@ -289,7 +289,7 @@ qr/\[TRACE \d+ content_by_lua\(nginx\.conf:\d+\):4 loop\]/
289289
ngx.say("from: ", from)
290290
ngx.say("to: ", to)
291291
ngx.say("matched: ", string.sub(s, from, to))
292-
';
292+
}
293293
}
294294
--- request
295295
GET /re
@@ -310,7 +310,7 @@ bad argument type
310310
--- config
311311
location = /re {
312312
access_log off;
313-
content_by_lua '
313+
content_by_lua_block {
314314
-- ngx.re.opt("jit_stack_size", 128 * 1024)
315315
local from, to, err
316316
local find = ngx.re.find
@@ -329,7 +329,7 @@ bad argument type
329329
ngx.say("from: ", from)
330330
ngx.say("to: ", to)
331331
ngx.say("matched: ", string.sub(s, from, to))
332-
';
332+
}
333333
}
334334
--- request
335335
GET /re

0 commit comments

Comments
 (0)