tests: kernel: timer_api: remove extra adjustment to expected result

The converted target value for remaining ticks was increased by one to
match original code, which used a one-sided test.  The current test is
two-sided, so that increment is already present in the allowed 1 tick
error for boards with no slew, and incorporating it into the absolute
error can cause the test to fail.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-06-08 06:17:09 -05:00 committed by Carles Cufí
commit 31d615eab5

View file

@ -566,7 +566,7 @@ void test_timer_user_data(void)
void test_timer_remaining(void)
{
uint32_t dur_ticks = k_ms_to_ticks_ceil32(DURATION);
uint32_t target_rem_ticks = k_ms_to_ticks_ceil32(DURATION / 2) + 1;
uint32_t target_rem_ticks = k_ms_to_ticks_ceil32(DURATION / 2);
uint32_t rem_ms, rem_ticks, exp_ticks;
int32_t delta_ticks;
uint32_t slew_ticks;