mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-29 21:07:40 +01:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user