diff --git a/ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/MangerAbilityJsunit.test.js index b408a51cb9072e27416c3068740116f11beba364..6c881dad39aca02a0ec185871ece6cd2159f202a 100644 --- a/ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -100,24 +100,13 @@ export default function ActsAmsCallBackFifthScene() { done(); } - function sleep(delay) { - let start = new Date().getTime(); - while (true) { - if (new Date().getTime() - start > delay) { - break; - } - } - } - /* * @tc.number : Acts_Ams_test_6600 * @tc.name : getProcessRunningInfos : Get All Running Processes Info * @tc.desc : Get All Running Processes Info(by CallBack) */ it('Acts_Ams_test_6600', 0, async function (done) { - console.info("sleep begin"); - sleep(5000); - console.info("sleep end"); + console.info("Acts_Ams_test_6600 begin"); appManager.getProcessRunningInfos( (error, info) => { console.info('Acts_Ams_test_6600 getProcessRunningInfos error.code \