diff --git a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/BundleState.test.js b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/BundleState.test.js index 14f2a9c048116855009ddbc5f4553ec406567a53..508808d337c8dacfe838150a195a828759c8dc28 100644 --- a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/BundleState.test.js +++ b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/BundleState.test.js @@ -707,10 +707,11 @@ describe('bundlestate', function() { console.info('isIdleState_052 start'); bundlestate.isIdleState(bundleName, (err, res) => { 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 { console.info('isIdleState_052 callback success result = ' + JSON.stringify(res)); - expect(res).assertTrue(); + expect(res).assertFalse(); } done(); }); @@ -752,7 +753,7 @@ describe('bundlestate', function() { console.info('isIdleState_054 start'); bundlestate.isIdleState(bundleName).then((data) => { console.info('isIdleState_054 promise success result = ' + JSON.stringify(data)); - expect(data).assertTrue(); + expect(data).assertFalse(); done(); }).catch((err) => { console.info('isIdleState_054 promise fail result = ' + JSON.stringify(err.code));