mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 21:24:32 +02:00
freertos-smp: fix pytest_esp_timer test with FreeRTOS SMP enabled
This commit adjusts the threshold for one-shot timer callback time.
This commit is contained in:
@@ -63,7 +63,7 @@ def test_esp_timer(dut: Dut) -> None:
|
|||||||
one_shot_timer_time = int(match.group(1))
|
one_shot_timer_time = int(match.group(1))
|
||||||
diff = start_time + ONE_SHOT_TIMER_PERIOD - one_shot_timer_time
|
diff = start_time + ONE_SHOT_TIMER_PERIOD - one_shot_timer_time
|
||||||
logging.info('One-shot timer, time: {} us, diff: {}'.format(one_shot_timer_time, diff))
|
logging.info('One-shot timer, time: {} us, diff: {}'.format(one_shot_timer_time, diff))
|
||||||
assert(abs(diff) < 220)
|
assert(abs(diff) < 350)
|
||||||
|
|
||||||
match = dut.expect(RESTART_REGEX, timeout=3)
|
match = dut.expect(RESTART_REGEX, timeout=3)
|
||||||
start_time = int(match.group(1))
|
start_time = int(match.group(1))
|
||||||
|
Reference in New Issue
Block a user