From dc3789356d3e89a03eb4f46d6b53a5944e57ad13 Mon Sep 17 00:00:00 2001 From: IFX-Anusha Date: Fri, 12 Apr 2024 11:16:39 +0530 Subject: [PATCH] tests/psoc6: Modified Timer period in tests. Signed-off-by: IFX-Anusha --- tests/psoc6/timer.py | 6 +++--- tests/psoc6/timer.py.exp | 7 ------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/tests/psoc6/timer.py b/tests/psoc6/timer.py index 67eb0ab6fb7ee..7131f6f11e158 100644 --- a/tests/psoc6/timer.py +++ b/tests/psoc6/timer.py @@ -16,7 +16,7 @@ def call_periodic(timer): def test_oneshot(): - # Periodic timer + # Oneshot timer global oneshot_triggered tim_oneshot = Timer(0, period=1000, mode=Timer.ONE_SHOT, callback=call_oneshot) @@ -28,13 +28,13 @@ def test_oneshot(): print("Oneshot timer triggered") oneshot_triggered = False finally: - tim_oneshot.deinit() # Deinitialize the periodic timer + tim_oneshot.deinit() # Deinitialize the Oneshot timer def test_periodic(): # Periodic timer global periodic_triggered - tim_periodic = Timer(0, period=1, mode=Timer.PERIODIC, callback=call_periodic) + tim_periodic = Timer(0, period=1000, mode=Timer.PERIODIC, callback=call_periodic) try: # Wait for 15 seconds diff --git a/tests/psoc6/timer.py.exp b/tests/psoc6/timer.py.exp index f35489a58832b..f501827766e80 100644 --- a/tests/psoc6/timer.py.exp +++ b/tests/psoc6/timer.py.exp @@ -8,10 +8,3 @@ Periodic timer triggered Periodic timer triggered Periodic timer triggered Periodic timer triggered -Periodic timer triggered -Periodic timer triggered -Periodic timer triggered -Periodic timer triggered -Periodic timer triggered -Periodic timer triggered -Periodic timer triggered