From c5582514cb9e399606df5810f730e9211ab81270 Mon Sep 17 00:00:00 2001 From: chronolaw Date: Fri, 27 Sep 2024 19:14:14 +0800 Subject: [PATCH] setenv in 20-wasm/10-wasmtime_spec.lua --- spec/02-integration/20-wasm/10-wasmtime_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/02-integration/20-wasm/10-wasmtime_spec.lua b/spec/02-integration/20-wasm/10-wasmtime_spec.lua index 1770e2be0570..0660388fa8ae 100644 --- a/spec/02-integration/20-wasm/10-wasmtime_spec.lua +++ b/spec/02-integration/20-wasm/10-wasmtime_spec.lua @@ -76,6 +76,8 @@ describe("#wasm wasmtime (role: " .. role .. ")", function() local cp_prefix = "./wasm-cp" lazy_setup(function() + helpers.setenv("KONG_CLUSTER_INCREMENTAL_SYNC", inc_sync) + if role == "traditional" then helpers.get_db_utils("postgres") end @@ -130,6 +132,8 @@ describe("#wasm wasmtime (role: " .. role .. ")", function() if role == "data_plane" then helpers.stop_kong(cp_prefix) end + + helpers.unsetenv("KONG_CLUSTER_INCREMENTAL_SYNC") end) it("does not introduce any errors", function()