未验证 提交 bb463166 编写于 作者: O openharmony_ci 提交者: Gitee

!9961 【挑单 monthly_20230815】修复卡片相关ACTS测试失败的问题

Merge pull request !9961 from zhangdw521/cherry-pick-1693367648
...@@ -446,6 +446,8 @@ export default function test() { ...@@ -446,6 +446,8 @@ export default function test() {
done(); done();
}); });
console.info(`FMS_acquireForm_1100 featureAbility.startAbility end`); console.info(`FMS_acquireForm_1100 featureAbility.startAbility end`);
await sleepTime(3000);
done();
}); });
/** /**
...@@ -1246,6 +1248,8 @@ export default function test() { ...@@ -1246,6 +1248,8 @@ export default function test() {
}); });
console.info(`FMS_acquireForm_1900 featureAbility.startAbility end`); console.info(`FMS_acquireForm_1900 featureAbility.startAbility end`);
await sleepTime(3000);
done();
}); });
/** /**
* @tc.number: FMS_acquireForm_2100 * @tc.number: FMS_acquireForm_2100
......
...@@ -318,6 +318,8 @@ export default function test() { ...@@ -318,6 +318,8 @@ export default function test() {
}); });
console.info(`FMS_acquireForm_4200 featureAbility.startAbility end`); console.info(`FMS_acquireForm_4200 featureAbility.startAbility end`);
await sleep(3000);
done();
}); });
/** /**
......
...@@ -925,6 +925,9 @@ export default function test() { ...@@ -925,6 +925,9 @@ export default function test() {
console.info(`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`); console.info(`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
}); });
console.info(`${tcNumber} featureAbility.startAbility end`); console.info(`${tcNumber} featureAbility.startAbility end`);
await sleep(3000);
done();
}); });
/** /**
......
...@@ -447,6 +447,9 @@ export default function test() { ...@@ -447,6 +447,9 @@ export default function test() {
console.info(`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`); console.info(`${tcNumber} featureAbility.startAbilityhost error: ${JSON.stringify(err)}`);
}); });
console.info(`${tcNumber} featureAbility.startAbility end`); console.info(`${tcNumber} featureAbility.startAbility end`);
await sleep(3000);
done();
}); });
}); });
} }
......
...@@ -123,7 +123,10 @@ export default function test() { ...@@ -123,7 +123,10 @@ export default function test() {
createTempAndNormal: true, createTempAndNormal: true,
subscribeTerminate: true subscribeTerminate: true
}); });
});
await sleep(3000);
done();
});
}); });
} }
......
...@@ -480,7 +480,7 @@ export default function test() { ...@@ -480,7 +480,7 @@ export default function test() {
function onFormEnableCallBack(_, data) { function onFormEnableCallBack(_, data) {
expect(data.event).assertEqual("FMS_FormOnState_commonEvent"); expect(data.event).assertEqual("FMS_FormOnState_commonEvent");
console.debug("====>FMS_enableFormsUpdate_0900 onFormEnableCallBack====>" + JSON.stringify(data)); console.info("====>FMS_enableFormsUpdate_0900 onFormEnableCallBack====>" + JSON.stringify(data));
expect(data.parameters.formId).assertEqual(formIds[0]); expect(data.parameters.formId).assertEqual(formIds[0]);
expect(data.parameters.kind).assertEqual("enable"); expect(data.parameters.kind).assertEqual("enable");
commonEvent.unsubscribe(subscriberOnState, () => unsubscribeSupplyCallback("FMS_enableFormsUpdate_0900")); commonEvent.unsubscribe(subscriberOnState, () => unsubscribeSupplyCallback("FMS_enableFormsUpdate_0900"));
...@@ -488,7 +488,7 @@ export default function test() { ...@@ -488,7 +488,7 @@ export default function test() {
async function onFormDisableCallBack(_, data) { async function onFormDisableCallBack(_, data) {
expect(data.event).assertEqual("FMS_FormOnState_commonEvent"); expect(data.event).assertEqual("FMS_FormOnState_commonEvent");
console.debug("====>FMS_enableFormsUpdate_0900 onFormDisableCallBack====>" + JSON.stringify(data)); console.info("====>FMS_enableFormsUpdate_0900 onFormDisableCallBack====>" + JSON.stringify(data));
expect(data.parameters.formId).assertEqual(formIds[0]); expect(data.parameters.formId).assertEqual(formIds[0]);
expect(data.parameters.kind).assertEqual("disable"); expect(data.parameters.kind).assertEqual("disable");
commonEvent.unsubscribe(subscriberOnState, () => unsubscribeSupplyCallback("FMS_enableFormsUpdate_0900")); commonEvent.unsubscribe(subscriberOnState, () => unsubscribeSupplyCallback("FMS_enableFormsUpdate_0900"));
...@@ -523,7 +523,7 @@ export default function test() { ...@@ -523,7 +523,7 @@ export default function test() {
done(); done();
}); });
console.log(`FMS_enableFormsUpdate_0900 featureAbility.startAbility notifyVisible end`); console.log(`FMS_enableFormsUpdate_0900 featureAbility.startAbility notifyVisible end`);
}, 10000); }, 1000);
} }
async function onAcquiredCallBack(_, data) { async function onAcquiredCallBack(_, data) {
...@@ -584,6 +584,9 @@ export default function test() { ...@@ -584,6 +584,9 @@ export default function test() {
done(); done();
}); });
console.log(`FMS_enableFormsUpdate_0900 featureAbility.startAbility servicea end`); console.log(`FMS_enableFormsUpdate_0900 featureAbility.startAbility servicea end`);
await sleep(5000);
done();
}); });
/** /**
...@@ -731,6 +734,9 @@ export default function test() { ...@@ -731,6 +734,9 @@ export default function test() {
done(); done();
}); });
console.log(`FMS_enableFormsUpdate_1000 featureAbility.startAbility servicea end`); console.log(`FMS_enableFormsUpdate_1000 featureAbility.startAbility servicea end`);
await sleep(5000);
done();
}); });
/** /**
...@@ -933,6 +939,9 @@ export default function test() { ...@@ -933,6 +939,9 @@ export default function test() {
done(); done();
}); });
console.log(`FMS_enableFormsUpdate_1200 featureAbility.startAbility servicea end`); console.log(`FMS_enableFormsUpdate_1200 featureAbility.startAbility servicea end`);
await sleep(5000);
done();
}); });
}); });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册