提交 accbd7b8 编写于 作者: C chengxingzhen

XTS元能力失败用例适配

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 250846a8
...@@ -1031,6 +1031,7 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -1031,6 +1031,7 @@ describe('ActsFeatureAbilityTest', function () {
console.info("ACTS_GetAppType_0100 getAppType info :" + JSON.stringify(data)) console.info("ACTS_GetAppType_0100 getAppType info :" + JSON.stringify(data))
checkAppType(data); checkAppType(data);
console.info('====> ACTS_GetAppType_0100 end=====>') console.info('====> ACTS_GetAppType_0100 end=====>')
done()
}).catch((err)=>{ }).catch((err)=>{
console.info('====> ACTS_GetAppType_0100 err=====>' + JSON.stringify(err)) console.info('====> ACTS_GetAppType_0100 err=====>' + JSON.stringify(err))
expect().assertFail() expect().assertFail()
...@@ -1152,23 +1153,19 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -1152,23 +1153,19 @@ describe('ActsFeatureAbilityTest', function () {
* @tc.desc: Check the return value of the interface (by AsyncCallback) * @tc.desc: Check the return value of the interface (by AsyncCallback)
*/ */
it('ACTS_GetAbilityInfo_0200', 0, async function (done) { it('ACTS_GetAbilityInfo_0200', 0, async function (done) {
let tempInfo;
featureAbility.getContext().getAbilityInfo( featureAbility.getContext().getAbilityInfo(
(err, data) => { (err, data) => {
if(err.code != 0){ if(err.code != 0){
expect().assertFail() expect().assertFail()
done() done()
}else{ }else{
tempInfo = data console.info('====> ACTS_GetAbilityInfo_0200 =====>' + JSON.stringify(data))
checkAbilityInfo(data);
done()
} }
} }
); );
setTimeout(function () { await sleep(1000)
console.info('====> ACTS_GetAbilityInfo_0200 =====>' + JSON.stringify(tempInfo))
checkAbilityInfo(tempInfo);
console.info('====> ACTS_GetAbilityInfo_0200 =====>')
done()
}, TIMEOUT)
}) })
// checkHapModuleInfo // checkHapModuleInfo
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册