提交 9ee88d03 编写于 作者: D dingyao

Fix getAllApplicationInfo ets ut

Signed-off-by: Ndingyao <dingyao5@huawei.com>
上级 3ebb347d
......@@ -70,18 +70,19 @@ export default function GetabilityInfo() {
it('bundle_GetabilityInfo_test_0200', 0, async function (done) {
console.info('[bundle_GetabilityInfo_test_0200] START');
await Utils.sleep(1000);
let mData;
var timeOldStamp = await Utils.getNowTime();
bundleManager.getAbilityInfo(bundleName, abilityName, (err, data) => {
await bundleManager.getAbilityInfo(bundleName, abilityName, (err, data) => {
var timeNewStamp = Utils.getNowTime();
Utils.getDurationTime('bundle_GetabilityInfo_test_0200', timeOldStamp, timeNewStamp)
if (err) {
console.error('[bundle_GetabilityInfo_test_0200]Operation failed. Cause: ' + JSON.stringify(err));
}
console.info('[bundle_GetabilityInfo_test_0200]Operation successful. Data:' + JSON.stringify(data));
console.info('[bundle_GetabilityInfo_test_0200] getApplicationInfo callback data is: ' + JSON.stringify(data));
mData = data;
})
var callback = await bundleManager.getAbilityInfo(bundleName, abilityName);
checkAbilityInfo(callback);
await Utils.sleep(2000);
checkAbilityInfo(mData);
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册