提交 9d816346 编写于 作者: S smartltt

master api接口参数优化

Signed-off-by: Nsmartltt <litingting86@huawei.com>
Change-Id: I9998a3b8ee3b440fdbfa667910282590684f15b9
上级 b85bea9e
......@@ -2799,26 +2799,21 @@ export default function ReminderAgentTest() {
let maxLimitNumsOfApp = 30;
let firstId = 0;
let secondId = 0;
let diffId = 0
reminderAgent.cancelAllReminders().then(() =>{
for (let i = 0; i < maxLimitNumsOfApp; i++) {
(function (i) {
setTimeout(function () {
reminderAgent.publishReminder(timer).then((reminderId) => {
if (i === 0) {
firstId = reminderId
}
if (i === 29) {
secondId = reminderId
diffId = secondId - firstId
expect(29).assertEqual(diffId);
done();
}
});
}, 500);
})(i);
}
})
let diffId = 0;
let remiderId;
await reminderAgent.cancelAllReminders();
for (let i = 0; i < maxLimitNumsOfApp; i++) {
remiderId = await reminderAgent.publishReminder(timer);
if (i === 0) {
firstId = reminderId
}
if (i === 29) {
secondId = reminderId
diffId = secondId - firstId
expect(29).assertEqual(diffId);
done();
};
}
})
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册