Skip to content

Commit d6c3d79

Browse files
committed
Increase DEEP_SLEEP_TEST_CHECK_WAIT_DELTA_US
now that sleep_manager_can_deep_sleep_test_check() is based on wait_ns
1 parent c4cb3de commit d6c3d79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TESTS/mbed_hal/sleep_manager/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828

2929
#define SLEEP_DURATION_US 20000ULL
3030
#define DEEP_SLEEP_TEST_CHECK_WAIT_US 2000
31-
#define DEEP_SLEEP_TEST_CHECK_WAIT_DELTA_US 600
31+
// As sleep_manager_can_deep_sleep_test_check() is based on wait_ns
32+
// and wait_ns can be up to 40% slower, use a 50% delta here.
33+
#define DEEP_SLEEP_TEST_CHECK_WAIT_DELTA_US 1000
3234

3335
using utest::v1::Case;
3436
using utest::v1::Specification;

0 commit comments

Comments
 (0)