tests: bump expiry of token

This commit is contained in:
Girish Ramakrishnan
2021-08-13 10:23:27 -07:00
parent 85e3e4b955
commit aa981da43b

View File

@@ -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();
});