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 16977229351a880918df3f552fd0577ea5070e32..ac4ffdb5ab3efc271abbfa95f54c32d53060e7f8 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 @@ -514,7 +514,7 @@ export default function abilityTest() { }); await sleep(1000); setTimeout(()=> { - abilityDelegator.executeShellCommand('pkill -f com.example.mytest4').then(data => { + abilityDelegator.executeShellCommand('pkill -f com.example.mytest5').then(data => { console.log('pkill -f successful ' + JSON.stringify(data)) }).catch(err => { console.log('pkill -f err is ' + JSON.stringify(err)) @@ -527,12 +527,14 @@ export default function abilityTest() { if (err.code) { console.error(`startAbility failed, code is ${err.code}, message is ${err.message}`); expect(true).assertFalse(); + return; } console.info('startAbility succeed'); - expect(true).assertTrue() + expect(true).assertTrue(); + done(); }); },1000) - done(); + }) /* @@ -573,11 +575,12 @@ export default function abilityTest() { if (err.code) { console.error(`startAbility failed, code is ${err.code}, message is ${err.message}`); expect(true).assertFalse(); + return; } console.info('startAbility succeed'); - expect(true).assertTrue() + expect(true).assertTrue(); + done(); }); - done(); }) }) } \ No newline at end of file diff --git a/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTestRelyFifth/signature/openharmony_sx.p7b b/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTestRelyFifth/signature/openharmony_sx.p7b index 66524753d49d4017fdf9c6fcb4d1fdf18bcfe33c..7a40d1cdb47a4446edb1b7c4ab795420761e8aa6 100644 Binary files a/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTestRelyFifth/signature/openharmony_sx.p7b and b/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTestRelyFifth/signature/openharmony_sx.p7b differ