mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
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}'
This commit is contained in:
parent
09d8f12548
commit
d258cd5054
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue