diff --git a/src/routes/test/common.js b/src/routes/test/common.js index 645e40f3f..11b43f46b 100644 --- a/src/routes/test/common.js +++ b/src/routes/test/common.js @@ -100,7 +100,7 @@ function setup(done) { user.id = result.body.id; // HACK to get a token for second user (passwords are generated and the user should have gotten a password setup link...) - const token = await tokens.add({ identifier: user.id, clientId: 'test-client-id', expires: Date.now() + 10000, name: 'fromtest' }); + const token = await tokens.add({ identifier: user.id, clientId: 'test-client-id', expires: Date.now() + (60 * 60 * 1000), name: 'fromtest' }); user.token = token.accessToken; callback(); });