From 2c23c1458a9286ceb4cf4da2d128a928d2f0a4ff Mon Sep 17 00:00:00 2001 From: hided62 Date: Thu, 13 Aug 2026 01:05:24 +0000 Subject: [PATCH] test: follow public realtime event contract --- tools/integration-tests/test/orchestrator.e2e.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/integration-tests/test/orchestrator.e2e.test.ts b/tools/integration-tests/test/orchestrator.e2e.test.ts index 6337e726..2998ba0b 100644 --- a/tools/integration-tests/test/orchestrator.e2e.test.ts +++ b/tools/integration-tests/test/orchestrator.e2e.test.ts @@ -655,8 +655,7 @@ describe('pm2 orchestrator e2e', () => { const ssePromise = waitForSseEvent({ url: `${gameUrl}${eventsPath}`, token: accessTokenRef.value ?? '', - eventName: 'turnCompleted', - minAtMs: runStartMs, + eventName: 'readModelInvalidated', timeoutMs: 30_000, }); @@ -664,7 +663,8 @@ describe('pm2 orchestrator e2e', () => { expect(runStatus.lastRunAt).toBeTruthy(); const realtimeEvent = await ssePromise; - expect(realtimeEvent.type).toBe('turnCompleted'); + expect(realtimeEvent.type).toBe('readModelInvalidated'); + expect(realtimeEvent.invalidation).toBeTypeOf('object'); const gameDatabaseUrl = resolvePostgresConfigFromEnv({ schema: profile }).url; const connector = createGamePostgresConnector({ url: gameDatabaseUrl });