Comparison

spec/scansion/prosody.cfg.lua @ 13405:c8f3cfe59e90

scansion: Use captures or wildcards instead of mocking time > Mockery is one of the things I hold dear! And he's making a mockery of it!! -- Belkar Bitterleaf
author Kim Alvefur <zash@zash.se>
date Sun, 17 Dec 2023 16:29:03 +0100
parent 13027:012d6e7b723a
child 13406:3adc67301722
comparison
equal deleted inserted replaced
13404:034c7af177f0 13405:c8f3cfe59e90
1 --luacheck: ignore 1 --luacheck: ignore
2
3 -- Mock time functions to simplify tests --
4 local time = require "util.time";
5 function _G.os.time()
6 return 1219439344;
7 end
8 function time.now()
9 return 1219439344.5;
10 end
11 -------------------------------------------
12 2
13 admins = { "admin@localhost" } 3 admins = { "admin@localhost" }
14 4
15 network_backend = ENV_PROSODY_NETWORK_BACKEND or "epoll" 5 network_backend = ENV_PROSODY_NETWORK_BACKEND or "epoll"
16 network_settings = require"util.json".decode(ENV_PROSODY_NETWORK_SETTINGS or "{}") 6 network_settings = require"util.json".decode(ENV_PROSODY_NETWORK_SETTINGS or "{}")