Skip to content

Commit

Permalink
test(unit): apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Martin <[email protected]>
  • Loading branch information
locao and flrgh authored Mar 22, 2024
1 parent 247ef92 commit bf3dbfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/01-unit/04-prefix_handler_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -912,16 +912,16 @@ describe("NGINX conf compiler", function()
assert.matches("wasm {.+shm_kv counters 10m;.+}", ngx_cfg({ wasm = true, nginx_wasm_shm_kv_counters="10m" }, debug))
end)
it("injects a general shm_kv", function()
assert.matches("wasm {.+shm_kv %* 10m;.+}", ngx_cfg({ wasm = true, nginx_wasm_shm_kv="10m" }, debug))
assert.matches("wasm {.+shm_kv %* 10m;.+}", ngx_cfg({ wasm = true, nginx_wasm_shm_kv = "10m" }, debug))
end)
it("injects multiple shm_kvs", function()
assert.matches(
"wasm {.+shm_kv cache 10m.+shm_kv counters 10m;.+shm_kv %* 5m;.+}",
ngx_cfg({
wasm = true,
nginx_wasm_shm_kv_cache="10m",
nginx_wasm_shm_kv_counters="10m",
nginx_wasm_shm_kv="5m",
nginx_wasm_shm_kv_cache = "10m",
nginx_wasm_shm_kv_counters = "10m",
nginx_wasm_shm_kv = "5m",
}, debug)
)
end)
Expand Down

0 comments on commit bf3dbfb

Please sign in to comment.