diff --git a/distributed_schedule_lite/system_ability_manager_posix/src/BroadcastPublishTest.cpp b/distributed_schedule_lite/system_ability_manager_posix/src/BroadcastPublishTest.cpp index 69e52a8b7bc4b5a3588da79542968b5ca936db47..431c4125b56ebb0316cdc65d7292765e53819507 100755 --- a/distributed_schedule_lite/system_ability_manager_posix/src/BroadcastPublishTest.cpp +++ b/distributed_schedule_lite/system_ability_manager_posix/src/BroadcastPublishTest.cpp @@ -22,6 +22,7 @@ using namespace testing::ext; static const int16 TEST_LEN = 10; +static const int16 WAIT_LEN = 5; static const char *BROADCASR_TEST_SERVICE = "S_broadcast2"; static void C1Callback(Consumer *consumer, const Topic *topic, const Request *request) @@ -107,6 +108,7 @@ protected: { printf("[hcpptest]SetUpTestCase ! \n"); SystemInitProxy(); + sleep(WAIT_LEN); } // TearDownTestCase: Testsuit teardown, run after last testcase static void TearDownTestCase(void)