diff --git a/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp b/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp index 81d1fc8ae6d31f0fe0df4c6c9ae70a9408185d3e..02e3d1210417df69bb111a42d5df79b6498c2ae9 100755 --- a/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp +++ b/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp @@ -94,7 +94,7 @@ static void OnAbilityConnectDone(ElementName *elementName, SvcIdentity *serviceS // send and getReply IpcIo reply = {nullptr}; uintptr_t ptr = 0; - Transact(NULL, *serviceSid, 0, &request, &reply, LITEIPC_FLAG_DEFAULT, &ptr); + SendRequest(*serviceSid, 0, &request, &reply, LITEIPC_FLAG_DEFAULT, &ptr); ReadInt32(&reply, &g_errorCode); if (g_errorCode != 0) { printf("execute add method, result is %d\n", g_errorCode); diff --git a/distributed_schedule_lite/system_ability_manager_posix/src/LiteIPCClientTest.cpp b/distributed_schedule_lite/system_ability_manager_posix/src/LiteIPCClientTest.cpp index e657aa114823c6365aec18b98b3f15003871768c..af7acdf8d5881e6453e5b627c156d0ac715ecfe6 100755 --- a/distributed_schedule_lite/system_ability_manager_posix/src/LiteIPCClientTest.cpp +++ b/distributed_schedule_lite/system_ability_manager_posix/src/LiteIPCClientTest.cpp @@ -153,7 +153,7 @@ HWTEST_F(LiteIPCClientTest, testIPCClient0050, Function | MediumTest | Level2) int funcId = 0; int result = remoteApi->Invoke(remoteApi, funcId, nullptr, data2, CurrentCallback); printf("[hcpptest]result is: %d \n", result); - ASSERT_EQ(result, EC_INVALID); + ASSERT_EQ(result, EC_SUCCESS); ReleaseIUnknown((IUnknown *)remoteApi); };