diff --git a/hub/test/integration/helpers.ts b/hub/test/integration/helpers.ts index aca8e73..dd941d2 100644 --- a/hub/test/integration/helpers.ts +++ b/hub/test/integration/helpers.ts @@ -19,7 +19,9 @@ import type { FeishuRuntime } from "../../src/feishu/client.js"; import type { ModelFactory } from "../../src/agent/runner.js"; import { LocalSecretEnvelope } from "../../src/security/secretEnvelope.js"; -export const TEST_DATABASE_URL = "postgresql://paradigm:paradigm@127.0.0.1:5432/cph_hub_test"; +export const TEST_DATABASE_URL = + process.env.DATABASE_URL?.trim() || + "postgresql://paradigm:paradigm@127.0.0.1:5432/cph_hub_test"; export const DEFAULT_ORG_ID = "org_test_default"; export const TEST_SECRET_KEY_ID = "test-active"; export const TEST_SECRET_KEY = Buffer.alloc(32, "k");