diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/VerificationTest.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/VerificationTest.ets index bdb201085596a6b5275c73dfd7294fb3b93da31c..6b6c51e6f56ae9876b0d3231e8fec3afe6b445b6 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/VerificationTest.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/VerificationTest.ets @@ -66,8 +66,6 @@ export default function verificationTest(){ console.info(TAG + "startAbility data = " + JSON.stringify(data)); }).catch((err) => { console.info(TAG + "startAbility err = " + JSON.stringify(err)); - expect().assertFail(); - done(); }); } catch (err) { console.info(TAG + "catch err = " + JSON.stringify(err)); @@ -479,6 +477,8 @@ export default function verificationTest(){ console.info(TAG + "startAbility data = " + JSON.stringify(data)); }).catch((err) => { console.info(TAG + "startAbility err = " + JSON.stringify(err)); + expect().assertFail(); + done(); }); } catch (err) { console.info(TAG + "catch err = " + JSON.stringify(err));