diff --git a/backend/scripts/test-mcp-postgres.mjs b/backend/scripts/test-mcp-postgres.mjs index 1b4defb5..2c763847 100644 --- a/backend/scripts/test-mcp-postgres.mjs +++ b/backend/scripts/test-mcp-postgres.mjs @@ -394,7 +394,7 @@ try { DATABASE_URL: `postgresql://mcp_test:${password}@127.0.0.1:${port}/${database}`, DATABASE_PATH: join(directory, 'no-legacy-database.sqlite'), SQLITE_IMPORT_FULL_HISTORY: 'false', MMAPP_OWN_SQL_DB: database, MCP_STATE_DIR: join(directory, 'regression-state'), - REQUIRE_TEST_POSTGRES: '1', + REQUIRE_TEST_POSTGRES: '1', MMAPP_OWN_REGRESSION: '1', LOGS_PERFORMANCE: process.argv.includes('--performance') ? '1' : '0', AUTH_REQUIRED: 'false', NODE_ENV: 'test' }, }) diff --git a/backend/src/services/network-disabled-server.test.ts b/backend/src/services/network-disabled-server.test.ts index e6343ce6..c13e9842 100644 --- a/backend/src/services/network-disabled-server.test.ts +++ b/backend/src/services/network-disabled-server.test.ts @@ -90,7 +90,8 @@ try { finally { if (ownedIds.length) await pool.query("DELETE FROM servers WHERE id=ANY($1::bigint[])", [ownedIds]) } } } else { - assert.notEqual(process.env.REQUIRE_TEST_POSTGRES, "1", "Owned SQL/disabled API checks are mandatory in PostgreSQL regression") + // Only the owned regression (test-mcp-postgres.mjs) must run them; CI has PostgreSQL but no owned database. + assert.notEqual(process.env.MMAPP_OWN_REGRESSION, "1", "Owned SQL/disabled API checks are mandatory in the owned PostgreSQL regression") console.log("network-disabled-server.test.ts: invalid IDs passed; optional SQL checks need an explicit owned database") } } finally { await closePool() }