diff --git a/aafwk/aafwk_standard/abilitymanager/actsamstestsecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamstestsecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index 5780ab8602a1e0ccf10760d47e804d8e2699fea5..d1016d3cce84e797cf8927a97b170cfbce48917d 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamstestsecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamstestsecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -219,9 +219,13 @@ describe('ActsAmsTestSecondScene', function () { * @tc.desc : Kill Processes By BundleName(by Promise) */ it('Acts_Ams_test_3100', 0, async function (done) { - var info = await appManager.killProcessesByBundleName('XXXXXXXXXXXX'); - console.info('Acts_Ams_test_3100 killProcessesByBundleName data [' + info + ']'); - expect(info).assertEqual(2097215); - done(); + console.info('Acts_test_3100 killProcessesByBundleName data'); + appManager.killProcessesByBundleName('XXXXXXXXXXXX').then(data => { + console.log('Acts_test_3100 success: ' + data); + }).catch(err => { + console.log('Acts_test_3100 failed: ' + err.code); + expect(err.code).assertEqual(2097215); + done(); + }); }) }) \ No newline at end of file diff --git a/aafwk/aafwk_standard/abilitymanager/actsamstestthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamstestthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index 98509ee2cee2e4f01aca96362b31e12fdf83d37d..a825c5d646a52a7c8db3de2b52587688b4e87502 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamstestthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamstestthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -240,9 +240,13 @@ describe('ActsAmsTestThirdScene', function () { * @tc.desc : Kill Processes By BundleName(by Promise) */ it('Acts_Ams_test_4700', 0, async function (done) { - var info = await appManager.killProcessesByBundleName('XXXXXXXX'); - console.info('Acts_Ams_test_4700 killProcessesByBundleName data [' + info + ']'); - expect(info.code).assertEqual(2097215); - done(); + console.info('Acts_test_4700 killProcessesByBundleName data'); + appManager.killProcessesByBundleName('XXXXXXXX').then(data => { + console.log('Acts_test_4700 success: ' + data); + }).catch(err => { + console.log('Acts_test_4700 failed: ' + err.code); + expect(err.code).assertEqual(2097215); + done(); + }); }) }) \ No newline at end of file