瀏覽代碼

ci(e2e): use .env password for db connection

Nicolas Meienberger 1 年之前
父節點
當前提交
cc3334438e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      e2e/helpers/db.ts

+ 1 - 1
e2e/helpers/db.ts

@@ -2,7 +2,7 @@ import { Pool } from 'pg';
 import { drizzle } from 'drizzle-orm/node-postgres';
 import { drizzle } from 'drizzle-orm/node-postgres';
 import * as schema from '../../src/server/db/schema';
 import * as schema from '../../src/server/db/schema';
 
 
-const connectionString = `postgresql://tipi:postgres@${process.env.SERVER_IP}:5432/tipi?connect_timeout=300`;
+const connectionString = `postgresql://tipi:${process.env.POSTGRES_PASSWORD}@${process.env.SERVER_IP}:5432/tipi?connect_timeout=300`;
 
 
 const pool = new Pool({
 const pool = new Pool({
   connectionString,
   connectionString,