From 6a00ccf6256f46d54caf54ab9432b02b809b5d63 Mon Sep 17 00:00:00 2001 From: chengxingzhen Date: Wed, 17 Aug 2022 20:25:38 +0800 Subject: [PATCH] =?UTF-8?q?XTS=E5=85=8D=E5=AE=89=E8=A3=85=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=A5=97=E9=83=A8=E4=BB=B6=E5=8C=96=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengxingzhen --- .../src/main/js/test/MangerAbilityJsunit.test.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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 b408a51cb..6c881dad3 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 \ -- GitLab