Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit f202197

Browse files
authored
fix(tests): increase timeout on recovery code tests (#339), r=@jrgm
1 parent e5464d6 commit f202197

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

db-server/test/backend/db_tests.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2089,7 +2089,11 @@ module.exports = function (config, DB) {
20892089
})
20902090
})
20912091

2092-
describe('should consume recovery codes', () => {
2092+
describe('should consume recovery codes', function () {
2093+
// Consuming recovery codes is more time intensive since the scrypt hashes need
2094+
// to be compared. Let set timeout higher than 2s default.
2095+
this.timeout(12000)
2096+
20932097
let recoveryCodes
20942098
beforeEach(() => {
20952099
return db.replaceRecoveryCodes(account.uid, 2)

db-server/test/backend/remote.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,11 @@ module.exports = function(cfg, makeServer) {
16851685
})
16861686
})
16871687

1688-
describe('recovery codes', () => {
1688+
describe('recovery codes', function () {
1689+
// Consuming recovery codes is more time intensive since the scrypt hashes need
1690+
// to be compared. Let set timeout higher than 2s default.
1691+
this.timeout(12000)
1692+
16891693
let user
16901694
beforeEach(() => {
16911695
user = fake.newUserDataHex()

0 commit comments

Comments
 (0)