Skip to content

Commit c68d538

Browse files
committed
Verify tool sync warnings omit raw upstream failures
1 parent fb227e9 commit c68d538

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎packages/core/sdk/src/connections.test.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,10 +2630,11 @@ describe("tool catalog sync safety", () => {
26302630
);
26312631
expect(failureWarning).toBeDefined();
26322632
expect(failureWarning).toContain("broken");
2633-
// Both halves: the failure and the cause that names what to fix. A bare
2634-
// structural render of the error drops the cause entirely.
2635-
expect(failureWarning).toContain("upstream listing refused");
2636-
expect(failureWarning).toContain("connect ECONNREFUSED");
2633+
// Keep the failure class and affected connection, without raw provider
2634+
// text or nested causes that can carry credentials or SQL values.
2635+
expect(failureWarning).toContain("StorageError");
2636+
expect(failureWarning).not.toContain("upstream listing refused");
2637+
expect(failureWarning).not.toContain("connect ECONNREFUSED");
26372638
// The healthy peer is not swept into the failure.
26382639
expect(failureWarning).not.toContain("healthy");
26392640
}),

0 commit comments

Comments
 (0)