Give auth codes much longer expiration

Since the expiration is calculated when mocha loads the tests,
5000 was too low if some tests take longer
This commit is contained in:
Johannes Zellner
2016-09-27 17:11:47 +02:00
parent bd8acf763e
commit 34f624abef

View File

@@ -255,13 +255,13 @@ describe('database', function () {
authCode: 'authcode-0',
clientId: 'clientid-0',
userId: 'userid-0',
expiresAt: Date.now() + 5000
expiresAt: Date.now() + 500000
};
var AUTHCODE_1 = {
authCode: 'authcode-1',
clientId: 'clientid-1',
userId: 'userid-1',
expiresAt: Date.now() + 5000
expiresAt: Date.now() + 500000
};
var AUTHCODE_2 = {
authCode: 'authcode-2',