未验证 提交 5e7e4e7c 编写于 作者: O openharmony_ci 提交者: Gitee

!7719 【account】【monthly_20221018】解决账号子系统onoff用例超时问题

Merge pull request !7719 from 郭永强/cherry-pick-1677201562
...@@ -17,7 +17,7 @@ import commonevent from '@ohos.commonEvent' ...@@ -17,7 +17,7 @@ import commonevent from '@ohos.commonEvent'
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
const TIMEOUT = 5000; const TIMEOUT = 2000;
export default function ActsAccountOnOff() { export default function ActsAccountOnOff() {
describe('ActsAccountOnOff', async function () { describe('ActsAccountOnOff', async function () {
......
...@@ -17,7 +17,7 @@ import commonevent from '@ohos.commonEvent' ...@@ -17,7 +17,7 @@ import commonevent from '@ohos.commonEvent'
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
const TIMEOUT = 5000; const TIMEOUT = 2000;
export default function ActsAccountChangeOnOff() { export default function ActsAccountChangeOnOff() {
describe('ActsAccountChangeOnOff', async function () { describe('ActsAccountChangeOnOff', async function () {
......
...@@ -35,10 +35,10 @@ injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') ...@@ -35,10 +35,10 @@ injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
}, },
onInit() { onShow() {
this.title = "scene on off"; this.title = "scene on off";
}, },
onShow() { onInit() {
console.debug("====>change on off scene start===="); console.debug("====>change on off scene start====");
var appAccountManager = account.createAppAccountManager(); var appAccountManager = account.createAppAccountManager();
var commonEventSubscribeInfo = { var commonEventSubscribeInfo = {
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
console.debug("====>scene off finish===="); console.debug("====>scene off finish====");
}); });
}); });
featureAbility.terminateSelf() // featureAbility.terminateSelf()
} }
// Subscribe to the callback of account information changes, verify the received account information, and send // Subscribe to the callback of account information changes, verify the received account information, and send
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册