未验证 提交 34cadf65 编写于 作者: O openharmony_ci 提交者: Gitee

!3586 master分支开发修改返回值,xts用例修改

Merge pull request !3586 from qigongming/master_0617
...@@ -707,10 +707,11 @@ describe('bundlestate', function() { ...@@ -707,10 +707,11 @@ describe('bundlestate', function() {
console.info('isIdleState_052 start'); console.info('isIdleState_052 start');
bundlestate.isIdleState(bundleName, (err, res) => { bundlestate.isIdleState(bundleName, (err, res) => {
if(err) { if(err) {
console.info('isIdleState_052 callback fail result = ' + err); console.info('isIdleState_052 callback fail result = ' + JSON.stringify(err.code));
expect(err.code).assertLarger(0);
} else { } else {
console.info('isIdleState_052 callback success result = ' + JSON.stringify(res)); console.info('isIdleState_052 callback success result = ' + JSON.stringify(res));
expect(res).assertTrue(); expect(res).assertFalse();
} }
done(); done();
}); });
...@@ -752,7 +753,7 @@ describe('bundlestate', function() { ...@@ -752,7 +753,7 @@ describe('bundlestate', function() {
console.info('isIdleState_054 start'); console.info('isIdleState_054 start');
bundlestate.isIdleState(bundleName).then((data) => { bundlestate.isIdleState(bundleName).then((data) => {
console.info('isIdleState_054 promise success result = ' + JSON.stringify(data)); console.info('isIdleState_054 promise success result = ' + JSON.stringify(data));
expect(data).assertTrue(); expect(data).assertFalse();
done(); done();
}).catch((err) => { }).catch((err) => {
console.info('isIdleState_054 promise fail result = ' + JSON.stringify(err.code)); console.info('isIdleState_054 promise fail result = ' + JSON.stringify(err.code));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册