Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/spec/scansion/prosody.cfg.lua Sat Dec 16 13:47:55 2023 +0100 +++ b/spec/scansion/prosody.cfg.lua Sun Dec 17 16:29:03 2023 +0100 @@ -1,15 +1,5 @@ --luacheck: ignore --- Mock time functions to simplify tests -- -local time = require "util.time"; -function _G.os.time() - return 1219439344; -end -function time.now() - return 1219439344.5; -end -------------------------------------------- - admins = { "admin@localhost" } network_backend = ENV_PROSODY_NETWORK_BACKEND or "epoll"