fix(test): add back the tenant-scoped DELETE that wipes mcp_adapters (coreci-chat#12)
ci / test-pglite (PGlite, default) (push) Failing after 1m51s
ci / test-postgres (Postgres 16, G-022 RLS) (push) Failing after 1m34s

This commit is contained in:
2026-10-27 06:58:48 +00:00
parent 05df13bf55
commit 1c75282736
@@ -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();