From 865b975c3d22a18f929be0331e79489d79fa6c0f Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Tue, 24 Mar 2020 14:15:25 +0100 Subject: [PATCH] tests/evtimer_msg: fix assert range --- tests/evtimer_msg/tests/01-run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/evtimer_msg/tests/01-run.py b/tests/evtimer_msg/tests/01-run.py index 56635f72da..b45bd67d3d 100755 --- a/tests/evtimer_msg/tests/01-run.py +++ b/tests/evtimer_msg/tests/01-run.py @@ -23,7 +23,7 @@ def testfunc(child): # check if output is correct expected = int(child.match.group(2)) actual = int(child.match.group(1)) - assert(actual in range(expected - ACCEPTED_ERROR, expected + ACCEPTED_ERROR)) + assert(actual in range(expected - ACCEPTED_ERROR, expected + ACCEPTED_ERROR + 1)) print(".", end="", flush=True) print("") print("All tests successful")