Skip to content

Commit

Permalink
test proper version
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 27, 2023
1 parent 7bda7a4 commit 400da70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/01-unit/04-prefix_handler_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,11 @@ 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)

local kong_meta = require "kong.meta"
local major = kong_meta._VERSION_TABLE.major
local minor = kong_meta._VERSION_TABLE.minor
assert.matches("lmdb_validation_tag%s+" .. major .. "%." .. minor .. ";", main_inject_conf)
end)
end)

Expand Down

0 comments on commit 400da70

Please sign in to comment.