diff options
Diffstat (limited to 'spec/01-time_spec.lua')
-rw-r--r-- | spec/01-time_spec.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/01-time_spec.lua b/spec/01-time_spec.lua index 80faa75..1607cca 100644 --- a/spec/01-time_spec.lua +++ b/spec/01-time_spec.lua @@ -16,7 +16,6 @@ describe('Test time functions', function() describe("time()", function() it('returns current time', function() - wait_for_second_rollover() local expected_time = wait_for_second_rollover() local received_time = system.gettime() assert.is.near(expected_time, received_time, 0.02) @@ -51,7 +50,7 @@ describe('Test time functions', function() system.sleep(1, 1) local end_time = system.gettime() local elapsed_time = end_time - start_time - assert.is.near(elapsed_time, 1, 0.01) + assert.is.near(elapsed_time, 1, 0.2) -- large marging of error due to CI priorities end) @@ -60,7 +59,7 @@ describe('Test time functions', function() system.sleep(0.5, 1) local end_time = system.gettime() local elapsed_time = end_time - start_time - assert.is.near(0.5, elapsed_time, 0.01) + assert.is.near(0.5, elapsed_time, 0.2) -- large marging of error due to CI priorities end) |