From 5ec0ee36febcda1e2f3f90451fd614210fbebb97 Mon Sep 17 00:00:00 2001 From: xinking129 Date: Tue, 18 Jul 2023 17:01:43 +0800 Subject: [PATCH] change code Signed-off-by: xinking129 --- .../entry/src/main/ets/test/Ability.test.ets | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTest/entry/src/main/ets/test/Ability.test.ets index 99b9f6746..2b49494db 100644 --- a/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTest/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTest/entry/src/main/ets/test/Ability.test.ets @@ -567,14 +567,16 @@ export default function abilityTest() { expect(true).assertFalse(); done(); }); + await driver.delayMs(1000); await globalThis.abilitycontext.startAbility(wantStandard).then(() => { - console.info('startAbility first succeed'); + console.info('startAbility wantStandard succeed'); expect(true).assertTrue(); }).catch((err) => { - console.error(`startAbility first failed, error is ${JSON.stringify(err)}`); + console.error(`startAbility wantStandard failed, error is ${JSON.stringify(err)}`); expect(true).assertFalse(); done(); }); + await driver.delayMs(1000); await globalThis.abilitycontext.startAbility(wantSingle).then(() => { console.info('startAbility second succeed'); expect(true).assertTrue(); -- GitLab