diff --git a/distributed_schedule_lite/samgr_hal/src/broadcast_subscribe_func_test.c b/distributed_schedule_lite/samgr_hal/src/broadcast_subscribe_func_test.c index c491552f4c67a728f430d464dc292219366f2e3d..8995f0af44122b20ed80a54af7c320b381def211 100755 --- a/distributed_schedule_lite/samgr_hal/src/broadcast_subscribe_func_test.c +++ b/distributed_schedule_lite/samgr_hal/src/broadcast_subscribe_func_test.c @@ -16,7 +16,7 @@ * Create : 2020/04/19 */ -#include +#include "cmsis_os.h" #include "hctest.h" #include "samgr_lite.h" #include "broadcast_interface.h" @@ -110,7 +110,7 @@ LITE_TEST_SUIT(test, broadcast, Broadcast01TestSuite); static BOOL Broadcast01TestSuiteSetUp(void) { - LOS_Msleep(OPER_INTERVAL); + osDelay(OPER_INTERVAL); return TRUE; } diff --git a/distributed_schedule_lite/samgr_hal/src/common_func_test.c b/distributed_schedule_lite/samgr_hal/src/common_func_test.c index b3316edf269b3b23e242012f84b476ce416c346b..1e5161aab0fa4f9ea227878be8ad1d26f0dc22cd 100755 --- a/distributed_schedule_lite/samgr_hal/src/common_func_test.c +++ b/distributed_schedule_lite/samgr_hal/src/common_func_test.c @@ -16,7 +16,7 @@ * Create : 2020/04/19 */ -#include +#include "cmsis_os.h" #include "hctest.h" #include "common.h" @@ -48,7 +48,7 @@ LITE_TEST_SUIT(test, samgr, CommonTestSuite); static BOOL CommonTestSuiteSetUp(void) { - LOS_Msleep(OPER_INTERVAL); + osDelay(OPER_INTERVAL); return TRUE; }