feat(backend): enforce user-owned sessions
This commit is contained in:
@@ -22,7 +22,9 @@ test("GET /health remains available to container probes in upstream auth mode",
|
||||
});
|
||||
|
||||
test("SSE response headers are flushed before the first event", async () => {
|
||||
const app = buildApp(loadConfig({ THT_HARNESS_DIR: "/tmp/h" }));
|
||||
const app = buildApp(loadConfig({ THT_HARNESS_DIR: "/tmp/h" }), {
|
||||
thtRunner: { sessionShow: async () => ({ id: "header-probe" }) } as any,
|
||||
});
|
||||
await app.listen({ port: 0, host: "127.0.0.1" });
|
||||
const port = (app.server.address() as { port: number }).port;
|
||||
const controller = new AbortController();
|
||||
|
||||
Reference in New Issue
Block a user