aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/scansion/prosody.cfg.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/scansion/prosody.cfg.lua b/spec/scansion/prosody.cfg.lua
index 8d0d76e1..0061635d 100644
--- a/spec/scansion/prosody.cfg.lua
+++ b/spec/scansion/prosody.cfg.lua
@@ -1,15 +1,14 @@
--luacheck: ignore
--- Mock time functions to simplify tests
+-- Mock time functions to simplify tests --
+local time = require "util.time";
function _G.os.time()
return 1219439344;
end
-package.preload["util.time"] = function ()
- return {
- now = function () return 1219439344.5; end;
- monotonic = function () return 0.5; end;
- }
+function time.now()
+ return 1219439344.5;
end
+-------------------------------------------
admins = { "admin@localhost" }