fix(test): add back the tenant-scoped DELETE that wipes mcp_adapters (coreci-chat#12)
This commit is contained in:
@@ -141,6 +141,9 @@ beforeEach(async () => {
|
||||
// with it (coreci-chat#12). The wipe is a tenant-scoped DELETE inside
|
||||
// withTenant: the app role holds the DELETE privilege and the RLS policy
|
||||
// scopes the rows to the session's tenant.
|
||||
await withTenant(admin!.tenantId, async (c: ScopedClient) => {
|
||||
await c.query("DELETE FROM mcp_adapters");
|
||||
});
|
||||
// Reset the stream manager between tests so contexts don't leak.
|
||||
const { streamManager } = await getMcpRuntime();
|
||||
streamManager.reset();
|
||||
|
||||
Reference in New Issue
Block a user