Software /
code /
prosody
Comparison
spec/util_throttle_spec.lua @ 13399:f4415f76727b
util.throttle: Silence some strict luacheck warnings
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 09 Dec 2023 20:36:29 +0100 |
parent | 9993:02a41315d275 |
comparison
equal
deleted
inserted
replaced
13398:4ba11c2b915a | 13399:f4415f76727b |
---|---|
1 | 1 |
2 -- luacheck: ignore 411/a | |
2 | 3 |
3 -- Mock util.time | 4 -- Mock util.time |
4 local now = 0; -- wibbly-wobbly... timey-wimey... stuff | 5 local now = 0; -- wibbly-wobbly... timey-wimey... stuff |
5 local function later(n) | 6 local function later(n) |
6 now = now + n; -- time passes at a different rate | 7 now = now + n; -- time passes at a different rate |