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

!7313 通知xts用例运行异常修改(monthly)

Merge pull request !7313 from FangJinliang/monthly_20221018
...@@ -468,7 +468,14 @@ describe('secondaryDirectoryTest', function () { ...@@ -468,7 +468,14 @@ describe('secondaryDirectoryTest', function () {
} else { } else {
notify.getSlots().then((NotificationSlot) => { notify.getSlots().then((NotificationSlot) => {
console.info(`${TAG} getSlots success:` + JSON.stringify(NotificationSlot)) console.info(`${TAG} getSlots success:` + JSON.stringify(NotificationSlot))
expect(NotificationSlot[0].type).assertEqual(notify.SlotType.SOCIAL_COMMUNICATION) for (let i = 0; i < NotificationSlot.length; ++i) {
console.info(`${TAG} NotificationSlot[${i}].type:` + JSON.stringify(NotificationSlot[i].type))
if (NotificationSlot[i].type == notify.SlotType.SOCIAL_COMMUNICATION) {
done()
return
}
}
expect(false).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlots failed err: + ${err.code}`) console.info(`${TAG} getSlots failed err: + ${err.code}`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册