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 6042d6b75cba139093f267b21f083d04b18d840c..87b97535f388d08f0d1b1e60fef446f42f3d26ef 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 @@ -67,8 +67,10 @@ 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(); + if (err.code != 16000017) { + expect().assertFail(); + done(); + } }); } catch (err) { console.info(TAG + "catch err = " + JSON.stringify(err)); @@ -130,8 +132,10 @@ 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(); + if (err.code != 16000017) { + expect().assertFail(); + done(); + } }); } catch (err) { console.info(TAG + "catch err = " + JSON.stringify(err)); @@ -207,8 +211,10 @@ 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(); + if (err.code != 16000017) { + expect().assertFail(); + done(); + } }); } catch (err) { console.info(TAG + "catch err = " + JSON.stringify(err)); @@ -263,8 +269,10 @@ 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(); + if (err.code != 16000017) { + expect().assertFail(); + done(); + } }); } catch (err) { console.info(TAG + "catch err = " + JSON.stringify(err)); @@ -365,8 +373,10 @@ export default function verificationTest(){ console.info(TAG + "startAbility data = " + JSON.stringify(data) + ";" + JSON.stringify(data)); }).catch((err) => { console.info(TAG + "startAbility err = " + JSON.stringify(err)); - expect().assertFail(); - done(); + if (err.code != 16000017) { + expect().assertFail(); + done(); + } }); } catch (err) { console.info(TAG + "catch err = " + JSON.stringify(err));