From d258cd5054060e3e2e64b0ab429c4df353c50b32 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 11 Jul 2021 10:09:10 +0200 Subject: 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}' --- spec/scansion/prosody.cfg.lua | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3