aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2023-11-09 22:14:42 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2023-11-09 22:59:06 +0100
commitd4222ce6da2a2d7179fc79f9d0cc65fd6c09a686 (patch)
treea3e6b12c6cc703d1929fbfebdb99f34e9e6370ca
parent3f4a5564b2643d884594a15ddc233c9c4abe3780 (diff)
downloadluasystem-d4222ce6da2a2d7179fc79f9d0cc65fd6c09a686.tar.gz
luasystem-d4222ce6da2a2d7179fc79f9d0cc65fd6c09a686.tar.bz2
luasystem-d4222ce6da2a2d7179fc79f9d0cc65fd6c09a686.zip
fix(ci): relax tests, macos is imprecise due to priority
-rw-r--r--spec/time_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/time_spec.lua b/spec/time_spec.lua
index e1b457a..a017cfe 100644
--- a/spec/time_spec.lua
+++ b/spec/time_spec.lua
@@ -25,7 +25,7 @@ describe('Test time functions', function()
25 local starttime = system.gettime() 25 local starttime = system.gettime()
26 local starttick = system.monotime() 26 local starttick = system.monotime()
27 system.sleep(0.5) 27 system.sleep(0.5)
28 assert.is_near(0.5, system.gettime() - starttime, 0.1) 28 assert.is_near(0.5, system.gettime() - starttime, 0.15)
29 assert.is_near(0.5, system.monotime() - starttick, 0.1) 29 assert.is_near(0.5, system.monotime() - starttick, 0.15)
30 end) 30 end)
31end) 31end)