aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-11 10:09:10 +0200
committerKim Alvefur <zash@zash.se>2021-07-11 10:09:10 +0200
commitd258cd5054060e3e2e64b0ab429c4df353c50b32 (patch)
tree208a28c651495975abcea3b1ee2e5527181754de
parent09d8f1254854054b736c7188a16f8e0d7e6bde83 (diff)
downloadprosody-d258cd5054060e3e2e64b0ab429c4df353c50b32.tar.gz
prosody-d258cd5054060e3e2e64b0ab429c4df353c50b32.zip
scansion tests: Allow specifying network settings via environment variable
Allows testing e.g. opportunistic writes or other settings easily in CI or otherwise without editing the config file. make integration-test PROSODY_NETWORK_SETTINGS='{"opportunistic_writes":true}'
-rw-r--r--spec/scansion/prosody.cfg.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/scansion/prosody.cfg.lua b/spec/scansion/prosody.cfg.lua
index bb48742f..6c77b150 100644
--- a/spec/scansion/prosody.cfg.lua
+++ b/spec/scansion/prosody.cfg.lua
@@ -14,8 +14,7 @@ end
admins = { "admin@localhost" }
network_backend = ENV_PROSODY_NETWORK_BACKEND or "epoll"
-network_settings = {
-}
+network_settings = require"util.json".decode(ENV_PROSODY_NETWORK_SETTINGS or "{}")
modules_enabled = {
-- Generally required