Skip to content

Commit

Permalink
setenv in 20-wasm/10-wasmtime_spec.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Sep 27, 2024
1 parent 917c2d6 commit d3222af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/02-integration/20-wasm/10-wasmtime_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ describe("#wasm wasmtime (role: " .. role .. ")", function()
local prefix = "./wasm"

lazy_setup(function()
helpers.setenv("KONG_CLUSTER_INCREMENTAL_SYNC", inc_sync)

helpers.clean_prefix(prefix)
assert(helpers.kong_exec("prepare", {
database = role == "data_plane" and "off" or "postgres",
Expand All @@ -20,14 +22,15 @@ describe("#wasm wasmtime (role: " .. role .. ")", function()
role = role,
cluster_cert = "spec/fixtures/kong_clustering.crt",
cluster_cert_key = "spec/fixtures/kong_clustering.key",
cluster_incremental_sync = inc_sync,
}))

conf = assert(helpers.get_running_conf(prefix))
end)

lazy_teardown(function()
helpers.clean_prefix(prefix)

helpers.unsetenv("KONG_CLUSTER_INCREMENTAL_SYNC")
end)

if role == "control_plane" then
Expand Down Expand Up @@ -113,7 +116,6 @@ describe("#wasm wasmtime (role: " .. role .. ")", function()
cluster_cert_key = "spec/fixtures/kong_clustering.key",
status_listen = "off",
nginx_main_worker_processes = 2,
cluster_incremental_sync = inc_sync,
}))
end
end)
Expand Down

0 comments on commit d3222af

Please sign in to comment.