提交 63819629 编写于 作者: S smartltt

fixed 9d816346 from https://gitee.com/smartltt/xts_acts/pulls/8430

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