Skip to content

Commit

Permalink
fix tests fail due to cookie expiration (#35240)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Apr 17, 2019
1 parent 27bd635 commit 0e042ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/server/http/cookie_sesson_storage.test.ts
Expand Up @@ -40,7 +40,7 @@ function retrieveSessionCookie(cookies: string) {
}

const userData = { id: '42' };
const sessionDurationMs = 30;
const sessionDurationMs = 1000;
const delay = (ms: number) => new Promise(res => setTimeout(res, ms));
const cookieOptions = {
name: 'sid',
Expand Down
Expand Up @@ -36,7 +36,7 @@ export const url = {
redirectTo: '/login',
};

export const sessionDurationMs = 30;
export const sessionDurationMs = 1000;
export class DummySecurityPlugin {
public setup(core: CoreSetup) {
const authenticate: AuthenticationHandler<Storage> = async (request, sessionStorage, t) => {
Expand Down

0 comments on commit 0e042ce

Please sign in to comment.