diff --git a/communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js b/communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js index 64ef0ac117f26c94b3e840cbf9105a2736399f53..a292b09b074b9a44e5eecad7142b68a625097b9a 100755 --- a/communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js +++ b/communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js @@ -7414,16 +7414,16 @@ describe('ActsRpcClientJsTest', function(){ }); /* - * @tc.number SUB_Softbus_RPC_IRemoteObject_00900 + * @tc.number SUB_Softbus_IPC_Compatility_IRemoteObject_00900 * @tc.name IRemoteObject sendRequestAsync API Test * @tc.desc Function test * @tc.level 0 */ - it("SUB_Softbus_RPC_IRemoteObject_00900", 0,async function(done){ - console.info("---------------------start SUB_Softbus_RPC_IRemoteObject_00900---------------------------"); + it("SUB_Softbus_IPC_Compatility_IRemoteObject_00900", 0,async function(done){ + console.info("---------------------start SUB_Softbus_IPC_Compatility_IRemoteObject_00900---------------------------"); try{ var data = rpc.MessageParcel.create(); - console.info("SUB_Softbus_RPC_IRemoteObject_00900: create object successfully."); + console.info("SUB_Softbus_IPC_Compatility_IRemoteObject_00900: create object successfully."); var reply = rpc.MessageParcel.create(); var option = new rpc.MessageOption(); expect(data.writeByte(1)).assertTrue() @@ -7438,7 +7438,7 @@ describe('ActsRpcClientJsTest', function(){ expect(data.writeSequenceable(new MySequenceable(1, "aaa"))).assertTrue() await gIRemoteObject.sendRequestAsync(CODE_ALL_TYPE, data, reply, option, (err, result) => { - console.info("SUB_Softbus_RPC_IRemoteObject_00900:sendRequest done, error code: " + result.errCode) + console.info("SUB_Softbus_IPC_Compatility_IRemoteObject_00900:sendRequest done, error code: " + result.errCode) expect(result.errCode).assertEqual(0) expect(result.reply.readByte()).assertEqual(1) expect(result.reply.readShort()).assertEqual(2) @@ -7455,12 +7455,12 @@ describe('ActsRpcClientJsTest', function(){ expect(s.str).assertEqual("aaa") }); } catch (error) { - console.info("SUB_Softbus_RPC_IRemoteObject_00900:error = " + error); + console.info("SUB_Softbus_IPC_Compatility_IRemoteObject_00900:error = " + error); } data.reclaim(); reply.reclaim(); done(); - console.info("---------------------end SUB_Softbus_RPC_IRemoteObject_00900---------------------------"); + console.info("---------------------end SUB_Softbus_IPC_Compatility_IRemoteObject_00900---------------------------"); }); diff --git a/communication/dsoftbus/rpc_server/BUILD.gn b/communication/dsoftbus/rpc_server/BUILD.gn index c26a6da2fec25618f9506b1a9df487661878758a..084d3daac96a69c150e0ddd2e60f7b5ca71cb709 100644 --- a/communication/dsoftbus/rpc_server/BUILD.gn +++ b/communication/dsoftbus/rpc_server/BUILD.gn @@ -12,7 +12,7 @@ # limitations under the License. import("//test/xts/tools/build/suite.gni") -ohos_js_hap_suite("ActsRpcJsServer") { +ohos_hap_assist_suite("ActsRpcJsServer") { hap_profile = "./src/main/config.json" deps = [ ":rpc_js_assets",