diff --git a/account/appaccount/actsaccounttest/src/main/js/test/OnOff.js b/account/appaccount/actsaccounttest/src/main/js/test/OnOff.js index 971f5a097b5534c9c96c72813c5a72c8c69d7137..b66091f139c02bdb9f70d2ac3515937e4900bcf7 100644 --- a/account/appaccount/actsaccounttest/src/main/js/test/OnOff.js +++ b/account/appaccount/actsaccounttest/src/main/js/test/OnOff.js @@ -325,15 +325,14 @@ export default function ActsAccountChangeOnOff() { console.debug("====>enableAppAccess ActsAccountChangeOnOff_0500 start"); await appAccountManager.enableAppAccess("onoff_delete", "com.example.actsaccountsceneonoff"); function unSubscriberCallback(err){ - console.debug("====>unsubscribe 0500 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - done(); + console.debug("====>unsubscribe 0500 err:" + JSON.stringify(err)); } function subscriberCallback(err, data){ console.debug("====>subscriberCallback 0500 data:" + JSON.stringify(data)); expect(data.event).assertEqual("account_on_change_delete"); expect(data.data).assertEqual("SUCCESS"); commonevent.unsubscribe(subscriber, unSubscriberCallback); + done(); } function publishCallback(err){ console.debug("====>publish call back err:" + JSON.stringify(err));