mirror of
https://github.com/zadam/trilium.git
synced 2026-01-06 06:34:25 +01:00
test(server): broken test due to CLS
This commit is contained in:
parent
19c6ae6fe5
commit
35efd2a680
@ -4,6 +4,7 @@ import type { Application } from "express";
|
|||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { type SQLiteSessionStore } from "./session_parser.js";
|
import { type SQLiteSessionStore } from "./session_parser.js";
|
||||||
import { SessionData } from "express-session";
|
import { SessionData } from "express-session";
|
||||||
|
import cls from "../services/cls.js";
|
||||||
|
|
||||||
let app: Application;
|
let app: Application;
|
||||||
let sessionStore: SQLiteSessionStore;
|
let sessionStore: SQLiteSessionStore;
|
||||||
@ -106,7 +107,7 @@ describe("Login Route test", () => {
|
|||||||
expect(expiry).toBeTruthy();
|
expect(expiry).toBeTruthy();
|
||||||
|
|
||||||
vi.setSystemTime(expiry!);
|
vi.setSystemTime(expiry!);
|
||||||
vi.advanceTimersByTime(CLEAN_UP_INTERVAL);
|
cls.init(() => vi.advanceTimersByTime(CLEAN_UP_INTERVAL));
|
||||||
({ session } = await getSessionFromCookie(setCookieHeader));
|
({ session } = await getSessionFromCookie(setCookieHeader));
|
||||||
expect(session).toBeFalsy();
|
expect(session).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user