提交 0b96a591 编写于 作者: Z zhijianwen

unorder

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