diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets index d387eeca5ee318375b33ca65175bd4408ae05ac3..4b28e2be01eeda38a836bdef3a58932bc7788dba 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets @@ -374,13 +374,13 @@ export default function ApiCoverTest() { }) }) - /* + /* * @tc.number SUB_AA_AMS_Context_0200 * @tc.name Register the listener of Ability and cancel the listener. * @tc.desc Function test * @tc.level 3 */ - it('SUB_AA_AMS_Context_0200', 0, async function (done) { + it('SUB_AA_AMS_Context_0200', 0, async function (done) { await globalThis.abilityContext.eventHub.on("contextEvent", func1) globalThis.abilityContext.eventHub.emit("contextEvent", "aa", "bb") await sleep(500) diff --git a/ability/ability_runtime/context/actsstageappcontext/actsstageappcontexttest/entry/src/main/ets/test/StageAppContext.test.ets b/ability/ability_runtime/context/actsstageappcontext/actsstageappcontexttest/entry/src/main/ets/test/StageAppContext.test.ets index 040d5f4732011dd88f7e81be22c3f8f93c2a26a9..92dac92458fcac1a39ef4c791f59b7ae9235a310 100644 --- a/ability/ability_runtime/context/actsstageappcontext/actsstageappcontexttest/entry/src/main/ets/test/StageAppContext.test.ets +++ b/ability/ability_runtime/context/actsstageappcontext/actsstageappcontexttest/entry/src/main/ets/test/StageAppContext.test.ets @@ -255,6 +255,7 @@ export default function stageAppContextTest(abilityContext) { context.getProcessRunningInformation((err, data) => { console.log(TAG + " result = " + JSON.stringify(data)); expect(data[0].processName).assertEqual("com.example.stageappcontexttest"); + expect(typepf data[0].state).assertEqual("number"); }) done(); });