Skip to content

Commit

Permalink
04-prefix_handler_spec.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 27, 2023
1 parent 036967a commit 790da80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/01-unit/04-prefix_handler_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,7 @@ describe("NGINX conf compiler", function()
local main_inject_conf = prefix_handler.compile_nginx_main_inject_conf(helpers.test_conf)
assert.not_matches("lmdb_environment_path", main_inject_conf, nil, true)
assert.not_matches("lmdb_map_size", main_inject_conf, nil, true)
assert.not_matches("lmdb_validation_tag", main_inject_conf, nil, true)
end)

it("compiles a main NGINX inject conf #database=off", function()
Expand All @@ -1424,6 +1425,7 @@ describe("NGINX conf compiler", function()
local main_inject_conf = prefix_handler.compile_nginx_main_inject_conf(conf)
assert.matches("lmdb_environment_path%s+dbless.lmdb;", main_inject_conf)
assert.matches("lmdb_map_size%s+2048m;", main_inject_conf)
assert.matches("lmdb_validation_tag%s+%d+%.%d+;", main_inject_conf)
end)
end)

Expand Down

0 comments on commit 790da80

Please sign in to comment.