From 53bebb59f907571228dfb85a834a38536f934aa6 Mon Sep 17 00:00:00 2001 From: Dotta <34892728+cryppadotta@users.noreply.github.com> Date: Wed, 2 Dec 2026 16:56:20 -0600 Subject: [PATCH] test: keep connection rollback retry drafts unbound (#23560) Align the rollback retry test with draft resume. Preserve the catalog rollback and public identity checks. Co-Authored-By: Paperclip --- server/src/__tests__/generic-mcp-connection.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/__tests__/generic-mcp-connection.test.ts b/server/src/__tests__/generic-mcp-connection.test.ts index 122f182590c..d8b071e2145 100644 --- a/server/src/__tests__/generic-mcp-connection.test.ts +++ b/server/src/__tests__/generic-mcp-connection.test.ts @@ -2047,8 +2047,9 @@ describeEmbeddedPostgres("generic remote MCP connections", () => { } const retry = await service.connectGalleryApp(company.id, { ...input, resumeConnectionId: first.connectionId }, actor); expect(retry.catalog).toHaveLength(3); - await expect(db.select().from(toolProfiles).where(eq(toolProfiles.companyId, company.id))).resolves.toHaveLength(1); - await expect(db.select().from(toolProfileBindings).where(eq(toolProfileBindings.companyId, company.id))).resolves.toHaveLength(1); + await expect(service.getConnection(first.connectionId)).resolves.toMatchObject({ status: "draft", credentialPolicy: "per_user" }); + await expect(db.select().from(toolProfiles).where(eq(toolProfiles.companyId, company.id))).resolves.toHaveLength(0); + await expect(db.select().from(toolProfileBindings).where(eq(toolProfileBindings.companyId, company.id))).resolves.toHaveLength(0); }); it("creates an empty user grant after a personal public URL probe succeeds", async () => {