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 f621a912efb6b351bda303ef86d93c048dbc2954..7b275817e30dbb8accabe2847753e15c119607e4 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 @@ -223,10 +223,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(); - setTimeout(timeout, 5000); + 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 8fca0df6aae556f329518159314705ff261c1ea3..767fe916411a7249b0a0535642381686ca269e2d 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 @@ -245,10 +245,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(); - setTimeout(timeout, 5000); + 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