未验证 提交 6391998b 编写于 作者: O openharmony_ci 提交者: Gitee

!2140 Modify test case timeout and adjust errcode

Merge pull request !2140 from 高曦/master_xts_0301_account
...@@ -18,7 +18,6 @@ require('./AppAccess.test.js') ...@@ -18,7 +18,6 @@ require('./AppAccess.test.js')
require('./ExtraInfo.test.js') require('./ExtraInfo.test.js')
require('./AssociatedData.test.js') require('./AssociatedData.test.js')
require('./Credential.test.js') require('./Credential.test.js')
require('./OAuthToken.test.js')
require('./CreatManager.test.js') require('./CreatManager.test.js')
require('./NoPermission.test.js') require('./NoPermission.test.js')
require('./OnOff.js') require('./OnOff.js')
\ No newline at end of file
...@@ -16,7 +16,7 @@ import account from '@ohos.account.appAccount' ...@@ -16,7 +16,7 @@ import account from '@ohos.account.appAccount'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
const TIMEOUT = 5000; const TIMEOUT = 5000;
const ERR_APPACCOUNT_SERVICE_PERMISSION_DENIED = 4521992; const ERR_APPACCOUNT_SERVICE_PERMISSION_DENIED = 4521993;
describe('ActsAccountNoPermission', function () { describe('ActsAccountNoPermission', function () {
function sleep(delay) { function sleep(delay) {
var start = (new Date()).getTime(); var start = (new Date()).getTime();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "1000000", "test-timeout": "1500000",
"package": "com.example.actsosaccountsystemtest", "package": "com.example.actsosaccountsystemtest",
"shell-timeout": "60000" "shell-timeout": "60000"
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "200000", "test-timeout": "300000",
"package": "com.example.actsosaccountthirdpartytest", "package": "com.example.actsosaccountthirdpartytest",
"shell-timeout": "60000" "shell-timeout": "60000"
}, },
......
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
core.init() core.init()
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
this.timeout = 15000; this.timeout = 40000;
configService.setConfig(this) configService.setConfig(this)
require('../../../test/List.test') require('../../../test/List.test')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册