Skip to content

Commit e62c179

Browse files
committed
test(search): expect the classified reconnect error from a revoked managed read
1 parent e85f4cd commit e62c179

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/sim/lib/sim-search/live/managed-mcp.integration.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,9 @@ describe('managed Search operation sessions', () => {
739739
.where(eq(credential.id, actors[0].credentialId))
740740
}
741741
try {
742-
await expect(read(found.results[0].documentId)).rejects.toMatchObject({ status: 'reconnect' })
742+
await expect(read(found.results[0].documentId)).rejects.toMatchObject({
743+
code: 'unauthorized',
744+
})
743745
expect(openTransports.size).toBe(0)
744746
} finally {
745747
onTool = undefined

0 commit comments

Comments
 (0)