From 6079f60d460c3947eeb6231934a575a123d08bfb Mon Sep 17 00:00:00 2001 From: xinking129 Date: Mon, 17 Jul 2023 17:47:32 +0800 Subject: [PATCH] modify code Signed-off-by: xinking129 --- .../entry/src/main/ets/test/Ability.test.ets | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/Ability.test.ets index b975ed487..c94764c02 100644 --- a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/Ability.test.ets @@ -28,10 +28,6 @@ export default function abilityTest() { beforeEach(async function () { var abilityDelegator; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); - let cmd1 = 'hilog -r' - await abilityDelegator.executeShellCommand(cmd1, (err : any, data : any) => { - console.info("executeShellCommand1 callback"); - }); await abilityDelegator.executeShellCommand("hilog -G 20M", async (err, data) => {}) }) @@ -43,16 +39,12 @@ export default function abilityTest() { let cmd6 = 'aa force-stop com.example.applicationstatechangethreereply' let cmd4 = 'aa force-stop com.example.getrunningprocessinformationonereply' let cmd5 = 'aa force-stop com.example.getrunningprocessinformationtworeply' - let cmd3 = 'hilog -r' await abilityDelegator.executeShellCommand(cmd1).then(() => { console.info("executeShellCommand1 callback"); }); await abilityDelegator.executeShellCommand(cmd2).then(() => { console.info("executeShellCommand2 callback"); }); - await abilityDelegator.executeShellCommand(cmd3).then(() => { - console.info("executeShellCommand3 callback"); - }); await abilityDelegator.executeShellCommand(cmd4).then(() => { console.info("executeShellCommand3 callback"); }); -- GitLab