diff --git a/TESTS/mbed_hal/watchdog/main.cpp b/TESTS/mbed_hal/watchdog/main.cpp index 60ba65bc3c..c22d1e9623 100644 --- a/TESTS/mbed_hal/watchdog/main.cpp +++ b/TESTS/mbed_hal/watchdog/main.cpp @@ -40,7 +40,7 @@ // Do not set watchdog timeout shorter than 50 ms as it may cause the // host-test-runner return 'TIMEOUT' instead of 'FAIL' / 'PASS' if watchdog // performs reset during test suite teardown. -#define WDG_TIMEOUT_MS 500UL +#define WDG_TIMEOUT_MS 100UL #define MSG_VALUE_DUMMY "0" #define MSG_VALUE_LEN 24 @@ -243,8 +243,8 @@ Case cases[] = { test_update_config, (utest::v1::case_teardown_handler_t) case_teardown_wdg_stop_or_reset), - Case("Init, 500 ms", (utest::v1::case_setup_handler_t) case_setup_sync_on_reset, - test_init<500UL>, (utest::v1::case_teardown_handler_t) case_teardown_sync_on_reset), + Case("Init, 100 ms", (utest::v1::case_setup_handler_t) case_setup_sync_on_reset, + test_init<100UL>, (utest::v1::case_teardown_handler_t) case_teardown_sync_on_reset), Case("Init, max_timeout", (utest::v1::case_setup_handler_t) case_setup_sync_on_reset, test_init_max_timeout, (utest::v1::case_teardown_handler_t) case_teardown_sync_on_reset), }; diff --git a/TESTS/mbed_hal/watchdog_reset/main.cpp b/TESTS/mbed_hal/watchdog_reset/main.cpp index 9421f222cf..2fbf4d304e 100644 --- a/TESTS/mbed_hal/watchdog_reset/main.cpp +++ b/TESTS/mbed_hal/watchdog_reset/main.cpp @@ -25,13 +25,14 @@ #include "watchdog_reset_tests.h" #include "mbed.h" -#define TIMEOUT_MS 500UL #if TARGET_NUMAKER_PFM_NANO130 /* On NUMAKER_PFM_NANO130 target, WDT's clock source is fixed to LIRC, which is more * inaccurate than other targets. Enlarge this delta define to pass this test. */ +#define TIMEOUT_MS 500UL #define TIMEOUT_DELTA_MS 100UL #else -#define TIMEOUT_DELTA_MS 50UL +#define TIMEOUT_MS 100UL +#define TIMEOUT_DELTA_MS 10UL #endif #define MSG_VALUE_DUMMY "0"