Skip to content

Commit 76dd42a

Browse files
committed
utilities_tests: Update us range for gtest
Be a bit more lenient with the acceptable range for the microsecond flavor of upm_delay (+/- 150us instead of +/- 100us). Signed-off-by: Noel Eck <noel.eck@intel.com>
1 parent 63c3b4b commit 76dd42a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/utilities/utilities_tests.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ TEST_F(utilities_unit, test_upm_delay_us)
5757
upm_delay_us(0);
5858
upm_delay_us(1000);
5959

60-
/* +- check for 1000us +/- 100us */
61-
ASSERT_NEAR(upm_elapsed_us(&clock), 1000, 100);
60+
/* +- check for 1000us +/- 150us */
61+
ASSERT_NEAR(upm_elapsed_us(&clock), 1000, 150);
6262
}
6363

6464
/* Currently no need for a custom main (use gtest's)

0 commit comments

Comments
 (0)