mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
chore(tests): fix failing test by accounting for minor inaccuracy
This commit is contained in:
parent
207af8e3dc
commit
e68d5eb207
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
local DateTime = require("@lune/DateTime")
|
local DateTime = require("@lune/DateTime")
|
||||||
|
|
||||||
assert(
|
assert(
|
||||||
DateTime.fromUniversalTime()["unixTimestamp"] == os.time(),
|
math.abs(DateTime.fromUniversalTime()["unixTimestamp"] - os.time()) <= 3,
|
||||||
"expected DateTime.fromLocalTime() with no args to return DateTime at the current moment"
|
"expected DateTime.fromLocalTime() with no args to return DateTime at the current moment"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue