From 92d3c709fd63e31474c308d1151be154ab1526d0 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 11 Mar 2023 18:53:27 +0800 Subject: [PATCH] add user Signed-off-by: unknown --- .../src/main/ets/test/VerificationTest.ets | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) 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 6042d6b75..87b97535f 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)); -- GitLab