提交 6ea55995 编写于 作者: C chengxingzhen
上级 fee29f0d
...@@ -820,7 +820,7 @@ export default function startAbilityTest(abilityContext) { ...@@ -820,7 +820,7 @@ export default function startAbilityTest(abilityContext) {
abilityForeground(TAG); abilityForeground(TAG);
await sleep(1000); await sleep(1000);
abilityBackground(TAG); abilityBackground(TAG);
await sleep(5000); await sleep(2000);
var str = { var str = {
"bundleName": "com.example.qianyiyingyong.hmservice", "bundleName": "com.example.qianyiyingyong.hmservice",
"abilityName": "com.example.qianyiyingyong.MainAbility", "abilityName": "com.example.qianyiyingyong.MainAbility",
...@@ -855,7 +855,7 @@ export default function startAbilityTest(abilityContext) { ...@@ -855,7 +855,7 @@ export default function startAbilityTest(abilityContext) {
abilityForeground(TAG); abilityForeground(TAG);
await sleep(1000); await sleep(1000);
abilityBackground(TAG); abilityBackground(TAG);
await sleep(5000); await sleep(2000);
var str = { var str = {
"bundleName": "com.example.qianyiyingyong.hmservice", "bundleName": "com.example.qianyiyingyong.hmservice",
"abilityName": "com.example.qianyiyingyong.MainAbility", "abilityName": "com.example.qianyiyingyong.MainAbility",
...@@ -916,7 +916,7 @@ export default function startAbilityTest(abilityContext) { ...@@ -916,7 +916,7 @@ export default function startAbilityTest(abilityContext) {
console.log(TAG + ": startAbility fail. err: " + JSON.stringify(error)); console.log(TAG + ": startAbility fail. err: " + JSON.stringify(error));
expect(error.code == 3).assertTrue(); expect(error.code == 3).assertTrue();
}); });
await sleep(35000); await sleep(2000);
console.info("------------end FreeInstall_Stage_Local_StartAbility_2500-------------"); console.info("------------end FreeInstall_Stage_Local_StartAbility_2500-------------");
done(); done();
}); });
...@@ -1168,7 +1168,7 @@ export default function startAbilityTest(abilityContext) { ...@@ -1168,7 +1168,7 @@ export default function startAbilityTest(abilityContext) {
}).catch((error) => { }).catch((error) => {
console.log(TAG + ": Mainability2 startAbility fail. err: " + JSON.stringify(error)); console.log(TAG + ": Mainability2 startAbility fail. err: " + JSON.stringify(error));
}); });
await sleep(5000); await sleep(2000);
abilityBackground(TAG); abilityBackground(TAG);
await sleep(1000); await sleep(1000);
var str2 = { var str2 = {
...@@ -1215,7 +1215,7 @@ export default function startAbilityTest(abilityContext) { ...@@ -1215,7 +1215,7 @@ export default function startAbilityTest(abilityContext) {
}).catch((error) => { }).catch((error) => {
console.log(TAG + ": Mainability2 startAbility fail. err: " + JSON.stringify(error)); console.log(TAG + ": Mainability2 startAbility fail. err: " + JSON.stringify(error));
}); });
await sleep(5000); await sleep(2000);
abilityBackground(TAG); abilityBackground(TAG);
await sleep(1000); await sleep(1000);
var str2 = { var str2 = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册