From 6ea5599511fcfdedebef58ae9e1179f38e2c3802 Mon Sep 17 00:00:00 2001 From: chengxingzhen Date: Tue, 27 Sep 2022 22:32:56 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20ce33e5e=20from=20https://gitee.com/chen?= =?UTF-8?q?gxingzhen/xts=5Facts=5Fmaster/pulls/5741=20xts=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=94=A8=E4=BE=8B=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengxingzhen --- .../entry/src/main/ets/test/StartAbilityTest.ets | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets index 94642e7d3..cdbfb219f 100644 --- a/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets +++ b/ability/ability_runtime/freeinstalltest/startabilitystagetest/actsfreeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets @@ -820,7 +820,7 @@ export default function startAbilityTest(abilityContext) { abilityForeground(TAG); await sleep(1000); abilityBackground(TAG); - await sleep(5000); + await sleep(2000); var str = { "bundleName": "com.example.qianyiyingyong.hmservice", "abilityName": "com.example.qianyiyingyong.MainAbility", @@ -855,7 +855,7 @@ export default function startAbilityTest(abilityContext) { abilityForeground(TAG); await sleep(1000); abilityBackground(TAG); - await sleep(5000); + await sleep(2000); var str = { "bundleName": "com.example.qianyiyingyong.hmservice", "abilityName": "com.example.qianyiyingyong.MainAbility", @@ -916,7 +916,7 @@ export default function startAbilityTest(abilityContext) { console.log(TAG + ": startAbility fail. err: " + JSON.stringify(error)); expect(error.code == 3).assertTrue(); }); - await sleep(35000); + await sleep(2000); console.info("------------end FreeInstall_Stage_Local_StartAbility_2500-------------"); done(); }); @@ -1168,7 +1168,7 @@ export default function startAbilityTest(abilityContext) { }).catch((error) => { console.log(TAG + ": Mainability2 startAbility fail. err: " + JSON.stringify(error)); }); - await sleep(5000); + await sleep(2000); abilityBackground(TAG); await sleep(1000); var str2 = { @@ -1215,7 +1215,7 @@ export default function startAbilityTest(abilityContext) { }).catch((error) => { console.log(TAG + ": Mainability2 startAbility fail. err: " + JSON.stringify(error)); }); - await sleep(5000); + await sleep(2000); abilityBackground(TAG); await sleep(1000); var str2 = { -- GitLab