From f5accbc43341f94bec47b40faeda3589efa8d29c Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 26 Oct 2026 10:29:34 -0500 Subject: [PATCH] test(chat): compare retry action IDs in a stable order The retry authorization test checks that the same action rows remain. Sort both database reads so a PostgreSQL scan-order change does not report a mutation. Co-Authored-By: Paperclip --- server/src/__tests__/chat-channels.integration.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/src/__tests__/chat-channels.integration.test.ts b/server/src/__tests__/chat-channels.integration.test.ts index 5fa01500bf4..ec80d71128a 100644 --- a/server/src/__tests__/chat-channels.integration.test.ts +++ b/server/src/__tests__/chat-channels.integration.test.ts @@ -57961,7 +57961,8 @@ describeEmbeddedPostgres("chat channel control-plane integration", () => { const before = await db .select({ id: chatActions.id }) .from(chatActions) - .where(eq(chatActions.endpointId, context.endpoint.id)); + .where(eq(chatActions.endpointId, context.endpoint.id)) + .orderBy(chatActions.id); if (linkedPrincipalId) { await db .update(chatIdentityLinks) @@ -58043,7 +58044,8 @@ describeEmbeddedPostgres("chat channel control-plane integration", () => { db .select({ id: chatActions.id }) .from(chatActions) - .where(eq(chatActions.endpointId, context.endpoint.id)), + .where(eq(chatActions.endpointId, context.endpoint.id)) + .orderBy(chatActions.id), ).resolves.toEqual(before); } finally { await db