From 864f5532fa983f185eca7a7a1b0119b85181c2c8 Mon Sep 17 00:00:00 2001 From: morris Date: Fri, 28 Apr 2023 11:43:50 +0800 Subject: [PATCH] gptimer: enlarge test threshold --- components/driver/test_apps/gptimer/main/test_gptimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/driver/test_apps/gptimer/main/test_gptimer.c b/components/driver/test_apps/gptimer/main/test_gptimer.c index 49bfe1482d..dc3006095b 100644 --- a/components/driver/test_apps/gptimer/main/test_gptimer.c +++ b/components/driver/test_apps/gptimer/main/test_gptimer.c @@ -121,7 +121,7 @@ TEST_CASE("gptimer_wallclock_with_various_clock_sources", "[gptimer]") printf("get raw count of gptimer %d: %llu\r\n", i, value); // convert the raw count to us value = value * 1000000 / timer_resolution_hz[i]; - TEST_ASSERT_UINT_WITHIN(2000, 40000, value); + TEST_ASSERT_UINT_WITHIN(2500, 40000, value); } printf("disable timers\r\n"); for (int i = 0; i < SOC_TIMER_GROUP_TOTAL_TIMERS; i++) {