aboutsummaryrefslogtreecommitdiff
path: root/spec/01-time_spec.lua
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2026-01-09 15:19:43 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2026-01-17 12:49:34 +0100
commitb1d1b89d74f157e9cd9b8d2ba6b6da870d65dabf (patch)
treeb1de1e4e5bcbc85082a8e613f573cf5cbfa9dd13 /spec/01-time_spec.lua
parent2bb8b526290ef8156f64443c07dc7754f467f07c (diff)
downloadluasystem-master.tar.gz
luasystem-master.tar.bz2
luasystem-master.zip
chore(test): relax test assertion wrt timeHEADmaster
fixes #77
Diffstat (limited to 'spec/01-time_spec.lua')
-rw-r--r--spec/01-time_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/01-time_spec.lua b/spec/01-time_spec.lua
index 1607cca..d2fabaa 100644
--- a/spec/01-time_spec.lua
+++ b/spec/01-time_spec.lua
@@ -18,10 +18,10 @@ describe('Test time functions', function()
18 it('returns current time', function() 18 it('returns current time', function()
19 local expected_time = wait_for_second_rollover() 19 local expected_time = wait_for_second_rollover()
20 local received_time = system.gettime() 20 local received_time = system.gettime()
21 assert.is.near(expected_time, received_time, 0.02) 21 assert.is.near(expected_time, received_time, 0.1) -- large marging of error due issue #77
22 22
23 wait_for_second_rollover() 23 wait_for_second_rollover()
24 assert.is.near(1, system.gettime() - received_time, 0.02) 24 assert.is.near(1, system.gettime() - received_time, 0.1)
25 end) 25 end)
26 26
27 end) 27 end)