diff options
Diffstat (limited to 'spec/01-time_spec.lua')
| -rw-r--r-- | spec/01-time_spec.lua | 4 |
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) |
