提交 bc6f3c97 编写于 作者: Z zhangdawei40 提交者: zhangdw521

fixed 422dbc37 from https://gitee.com/zhangdw521/xts_acts/pulls/9935

fix form-related acts errors
Signed-off-by: Nzhangdawei40 <zhangdawei40@huawei.com>
Change-Id: I26379264d06770c3ecbca6b8a6709fbcb6eeb06c
上级 6f38a685
...@@ -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.
先完成此消息的编辑!
想要评论请 注册