Skip to content

Commit

Permalink
Merge pull request #148 from tecimovic/timing-issues
Browse files Browse the repository at this point in the history
Increase and centralize timings, before addressing this problem corre…
  • Loading branch information
tecimovic authored May 13, 2021
2 parents 7c92874 + 5c65704 commit 909eb74
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions test/conversion.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const queryPackage = require('../src-electron/db/query-package.js')
const queryZcl = require('../src-electron/db/query-zcl.js')
const util = require('../src-electron/util/util.js')

let timeout = testUtil.longTimeout
let haLightIsc = path.join(__dirname, 'resource/isc/ha-light.isc')
let haCombinedIsc = path.join(
__dirname,
Expand Down Expand Up @@ -129,7 +130,7 @@ test.skip(
)
expect(clientAttributesCount).toBe(2)
},
8000
timeout
)

test(
Expand All @@ -153,5 +154,5 @@ test(
expect(dump.endpointTypes.length).toBe(1)
expect(dump.endpoints.length).toBe(1)
},
8000
timeout
)
2 changes: 1 addition & 1 deletion test/genengine.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const testUtil = require('./test-util.js')

let db
const templateCount = testUtil.testTemplateCount
const genTimeout = 8000
const genTimeout = testUtil.longTimeout
const testFile = path.join(__dirname, 'resource/generation-test-file-1.zap')
const testFile2 = path.join(__dirname, 'resource/three-endpoint-device.zap')

Expand Down
2 changes: 1 addition & 1 deletion test/generation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const util = require('../src-electron/util/util.js')

let db
const { port, baseUrl } = testUtil.testServer(__filename)
const timeout = 8000
const timeout = testUtil.longTimeout
let uuid = util.createUuid()

beforeAll(() => {
Expand Down
2 changes: 2 additions & 0 deletions test/test-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ exports.totalSpecCount = 39
exports.totalEnumCount = 209
exports.totalEnumItemCount = 1595
exports.testTemplateCount = 17

exports.longTimeout = 12000

0 comments on commit 909eb74

Please sign in to comment.