Skip to content

Commit b6fc9e7

Browse files
committed
Update crossplane/ext/lua.py and crossplane/tests/ext/test_lua.py
Add extra bracket for testing
1 parent 59aade2 commit b6fc9e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/configs/lua-block-simple/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ http {
3131
upstream foo {
3232
server 127.0.0.1;
3333
balancer_by_lua_block {
34-
-- use Lua that'll do something interesting here
34+
-- use Lua that'll do something interesting here with external bracket for testing {
3535
}
3636
log_by_lua_block {
3737
print("I need no extra escaping here, for example: \r\nblah")

tests/ext/test_lua.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_lex_lua_block_simple():
6161
('127.0.0.1', 32),
6262
(';', 32),
6363
('balancer_by_lua_block', 33),
64-
('\n -- use Lua that\'ll do something interesting here\n ', 35),
64+
('\n -- use Lua that\'ll do something interesting here with external bracket for testing {\n ', 35),
6565
(';', 35),
6666
('log_by_lua_block', 36),
6767
('\n print("I need no extra escaping here, for example: \\r\\nblah")\n ', 38),
@@ -277,7 +277,7 @@ def test_parse_lua_block_simple():
277277
{
278278
'line': 33,
279279
'args': [
280-
'\n -- use Lua that\'ll do something interesting here'
280+
'\n -- use Lua that\'ll do something interesting here with external bracket for testing {'
281281
'\n '
282282
],
283283
'directive': 'balancer_by_lua_block'

0 commit comments

Comments
 (0)