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

!2170 【XTS】【事件通知子系统】ActsSubscriber_test_unorder用例修复

Merge pull request !2170 from zhijianwen/master
......@@ -209,10 +209,10 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
commonEventSubscriber1 = data;
Subscriber.subscribe(commonEventSubscriber1, subscriberCallBack001);
for (var i = 0; i < 50; ++i) {
setTimeout(function (){
console.debug("===============>ActsSubscriberTestUnorderSystem_0100 delay 1s==================");
console.info("Subscriber.publish is run at:" + commonEventSubscribeInfo.events[i]);
console.info("Subscriber type:" + typeof(commonEventSubscribeInfo.events[i]));
Subscriber.publish(commonEventSubscribeInfo.events[i], publishCallback);
}, 1000);
}
})
})
......@@ -286,10 +286,10 @@ describe('ActsSubscriberTestUnorderSystem', async function (done) {
commonEventSubscriber2 = data;
Subscriber.subscribe(commonEventSubscriber2, subscriberCallBack002);
for (var i = 0; i < 36; ++i) {
setTimeout(function (){
console.debug("===============>ActsSubscriberTestUnorderSystem_0200 delay 1s==================");
console.info("Subscriber.publish is run at:" + commonEventSubscribeInfo.events[i]);
console.info("Subscriber type:" + typeof(commonEventSubscribeInfo.events[i]));
Subscriber.publish(commonEventSubscribeInfo.events[i], publishCallback);
}, 1000);
}
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册