From bf3dbfb2abb4f87edb2a4a4e231222a298a77ca2 Mon Sep 17 00:00:00 2001 From: Vinicius Mignot Date: Fri, 22 Mar 2024 12:20:19 -0300 Subject: [PATCH] test(unit): apply suggestions from code review Co-authored-by: Michael Martin --- spec/01-unit/04-prefix_handler_spec.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/01-unit/04-prefix_handler_spec.lua b/spec/01-unit/04-prefix_handler_spec.lua index 37369170a7a..601b6eebc42 100644 --- a/spec/01-unit/04-prefix_handler_spec.lua +++ b/spec/01-unit/04-prefix_handler_spec.lua @@ -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)