From bac5767666aea61971ce692dcc8ae6f112dcc0ed Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Fri, 16 Jul 2021 18:24:22 +0500 Subject: [PATCH] freertos: Increases delta for UT - Test suspend-resume CPU. The number of tick_hook should be the same for both CPUs --- components/freertos/test/test_task_suspend_resume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/freertos/test/test_task_suspend_resume.c b/components/freertos/test/test_task_suspend_resume.c index 08f83f0b6c..4c3ce8c46f 100644 --- a/components/freertos/test/test_task_suspend_resume.c +++ b/components/freertos/test/test_task_suspend_resume.c @@ -306,8 +306,8 @@ static void test_scheduler_suspend2(int cpu) printf("count_tick[cpu0] = %d, count_tick[cpu1] = %d\n", count_tick[0], count_tick[1]); - TEST_ASSERT_INT_WITHIN(1, waiting_ms * 2, count_tick[0]); - TEST_ASSERT_INT_WITHIN(1, waiting_ms * 2, count_tick[1]); + TEST_ASSERT_INT_WITHIN(portTICK_PERIOD_MS * 2, waiting_ms * 2, count_tick[0]); + TEST_ASSERT_INT_WITHIN(portTICK_PERIOD_MS * 2, waiting_ms * 2, count_tick[1]); printf("\n"); }