提交 1651312f 编写于 作者: Z zhoujun62

Solve Xts ActsServiceAbilityClientTest fail

Signed-off-by: Nzhoujun62 <zhoujun62@huawei.com>
上级 d5aba10e
......@@ -48,6 +48,16 @@ class StubTest extends rpc.RemoteObject {
console.log('ACTS_SerivceAbilityServer ====< method called.')
}
}
function sleep(delay) {
let start = new Date().getTime();
while (true) {
if (new Date().getTime() - start > delay) {
break;
}
}
}
export default {
onStart(want) {
console.debug('ACTS_SerivceAbilityServer 0425 ====>onStart .ts 0851 ='
......@@ -78,6 +88,7 @@ export default {
},
}
);
sleep(600)
particleAbility.terminateSelf().then((data) => {
console.log('ACTS_SerivceAbilityServer terminateSelf data:' + JSON.stringify(data));
}).catch((error) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册