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 <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-26 10:29:34 -05:00
1 parent 8f16bfc85a
commit f5accbc433
1 file changed
+4 -2
@@ -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