From 6caa368520c7d0a4f8357d7e222f13b061981d53 Mon Sep 17 00:00:00 2001 From: hided62 Date: Sun, 2 Aug 2026 04:51:07 +0000 Subject: [PATCH] test(tournament): preserve migration baseline --- tools/integration-tests/test/tournamentLifecycle.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/integration-tests/test/tournamentLifecycle.test.ts b/tools/integration-tests/test/tournamentLifecycle.test.ts index 746aead..7eca293 100644 --- a/tools/integration-tests/test/tournamentLifecycle.test.ts +++ b/tools/integration-tests/test/tournamentLifecycle.test.ts @@ -92,7 +92,8 @@ const truncateSchema = async (schema: string): Promise => { await connector.connect(); try { const rows = (await connector.prisma.$queryRawUnsafe( - `SELECT tablename FROM pg_tables WHERE schemaname = '${schema}'` + `SELECT tablename FROM pg_tables + WHERE schemaname = '${schema}' AND tablename <> '_prisma_migrations'` )) as Array<{ tablename: string }>; if (rows.length === 0) { return; @@ -424,7 +425,7 @@ describe('actual tournament lifecycle', () => { turnDaemonLoop = turnDaemon.lifecycle.start(); const status = await transport.requestStatus(10_000); expect(status).not.toBeNull(); - }, 120_000); + }, 300_000); afterAll(async () => { if (turnDaemon) { @@ -436,7 +437,7 @@ describe('actual tournament lifecycle', () => { await gameConnector?.disconnect(); await gameServer?.app.close(); await gatewayServer?.app.close(); - }, 30_000); + }, 60_000); it('runs auto-open, enrollment, betting, finals, rewards, and payout through the real daemon', async () => { if (!store || !transport || !gameConnector) {