diff --git a/ability/ability_runtime/apitest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/apitest/entry/src/main/ets/test/Ability.test.ets index eb0aea66ba796ced69d76dce81c8063530469505..7784ab65062026af5f68b2ea4dd9c84516d5e0cd 100644 --- a/ability/ability_runtime/apitest/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/apitest/entry/src/main/ets/test/Ability.test.ets @@ -22,11 +22,16 @@ var mainability const START_ABILITY_TIMEOUT = 10000; const START_ABILITY_TIMEOUT_TWO_THOUSAND = 2000; const START_ABILITY_TIMEOUT_THOUSAND = 1000; + +function sleep(ms) { + return new Promise(resolve => setTimeout(resolve, ms)); +} export default function abilityTest() { describe('ActsChangeAbilityStagetest', function () { beforeAll(async function (done) { console.info('beforeAll called') + await sleep(2000) await globalThis.abilitydelegator.getCurrentTopAbility().then((data) => { mainability = data done() diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/Test.json b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/Test.json index 678e61d1fd4798a002495bb28af28e857217f25d..1da3b44af996dc2e49a8d32bad3c2c7af3123b92 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/Test.json +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsfreeinstallstartabilityforresultstagetest/Test.json @@ -26,10 +26,10 @@ { "type": "PushKit", "push":[ - "atomizationresultstageentry.hap -> /data/test/AtomizationResultStageEntry.hap", - "atomizationresultstagehm2.hap -> /data/test/AtomizationResultStageHm2.hap", - "atomizationresultstagehnm2.hap -> /data/test/AtomizationResultStageHnm2.hap", - "stageresultmyapplication1.hap -> /data/test/StageResultMyApplication1.hap", + "AtomizationResultStageEntry.hap -> /data/test/AtomizationResultStageEntry.hap", + "AtomizationResultStageHm2.hap -> /data/test/AtomizationResultStageHm2.hap", + "AtomizationResultStageHnm2.hap -> /data/test/AtomizationResultStageHnm2.hap", + "StageResultMyApplication1.hap -> /data/test/StageResultMyApplication1.hap", "MockService.hap -> /data/test/MockService.hap" ] } diff --git a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/Test.json b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/Test.json index 83e122a462d7c1a0e788743c3c729f13d61098e2..50d99fcc3a55e47d374caba4794d5f69b53d152b 100644 --- a/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/Test.json +++ b/ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/actsstartabilityforresultnotargetbundleliststagetest/Test.json @@ -26,7 +26,7 @@ { "type": "PushKit", "push":[ - "atomizationresultstageentry.hap -> /data/test/AtomizationResultStageEntry.hap", + "AtomizationResultStageEntry.hap -> /data/test/AtomizationResultStageEntry.hap", "MockService.hap -> /data/test/MockService.hap" ] }