From b27c59a0646f8f99ff9031b3166e8aadbf5d2bab Mon Sep 17 00:00:00 2001 From: zhoujun62 Date: Fri, 24 Mar 2023 14:45:49 +0800 Subject: [PATCH] solve XTS fail problem Signed-off-by: zhoujun62 --- .../entry/src/main/ets/test/Ability.test.ets | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/ability/ability_runtime/amsdisplayIdtest/actsamsstartabilityforresulttest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/amsdisplayIdtest/actsamsstartabilityforresulttest/entry/src/main/ets/test/Ability.test.ets index 2750a74ff..1427ef539 100644 --- a/ability/ability_runtime/amsdisplayIdtest/actsamsstartabilityforresulttest/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/amsdisplayIdtest/actsamsstartabilityforresulttest/entry/src/main/ets/test/Ability.test.ets @@ -23,6 +23,17 @@ console.debug("====>in Ability.test====>"); export default function abilityTest() { describe('ActsGetDisplayIdStartAbilityForResultTest', function () { + function sleep(ms) { + return new Promise(resolve => setTimeout(resolve, ms)); + } + + afterEach(async (done) => { + console.debug('= ACTS_afterEach ====in ActsGetDisplayIdStartAbilityForResultTest====>"); /* @@ -31,7 +42,7 @@ export default function abilityTest() { * @tc.desc: Verify Get displayId to startAbilityForResult Ability */ it('ACTS_startAbilityForResult_0800', 0, async function (done) { - console.log('ACTS_startAbilityForResult_0100====UnSubscribe0100 CallBack====>"); + console.debug("====>UnSubscribe0800 CallBack====>"); } function timeout() { @@ -158,7 +169,7 @@ export default function abilityTest() { console.debug("====>ACTS_startAbilityForResult_1000 Subscribe CallBack data:====>" + JSON.stringify(data)); async function processInfoCheck(data) { - console.info('====> ACTS_getDisplayIdTest_0600=====>'); + console.info('====> ACTS_startAbilityForResult_1000=====>'); expect(data.parameters['displayId']).assertEqual(0); expect(data.parameters['windowMode']).assertEqual(0); done(); -- GitLab