Commit 9a0bc173 authored by Vincent Michel's avatar Vincent Michel
Browse files

Increase tolerance in test_measurement

parent 1ad1b9e3
......@@ -62,9 +62,9 @@ class TestMeasurements(unittest.TestCase):
self.assertEqual(result.value, result.average, msg=msg)
self.assertEqual(result.nb_points, self.counter.nb_reads, msg=msg)
# allow 30% error. Seems a lot but it is the accumulation of sleep errors
# allow 50% error. Seems a lot but it is the accumulation of sleep errors
self.assertAlmostEqual(result.nb_points, ideal_nb_points,
delta=ideal_nb_points * 0.30, msg=msg)
delta=ideal_nb_points * 0.50, msg=msg)
# allow up to 10ms error in time calculation for pure software counter
self.assertAlmostEqual(dt, count_time, delta=0.01, msg=msg)
# variable error margin according to number of points
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment