Update test database host name
Test / test (push) Successful in 1m2s Details

This commit is contained in:
Jeff 2024-10-19 17:34:42 -04:00
parent b992443a99
commit d1f20c4a2b
4 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
DATABASE="postgres" DATABASE="postgres"
POSTGRES_PASSWORD="testpassword" POSTGRES_PASSWORD="testpassword"
POSTGRES_HOST="database"
VAPID_PRIVATE_KEY="privatekey" VAPID_PRIVATE_KEY="privatekey"
BASE_URL="http://localhost:5173" BASE_URL="http://localhost:5173"

View File

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: mcr.microsoft.com/playwright:v1.48.1-jammy container: mcr.microsoft.com/playwright:v1.48.1-jammy
services: services:
postgres: database:
image: postgres image: postgres
env: env:
POSTGRES_PASSWORD: testpassword POSTGRES_PASSWORD: testpassword

View File

@ -1,6 +1,6 @@
export default { export default {
database: process.env.DATABASE ?? "postgres", database: process.env.DATABASE ?? "postgres",
host: "database", host: process.env.POSTGRES_HOST ?? "database",
user: "postgres", user: "postgres",
password: process.env.POSTGRES_PASSWORD, password: process.env.POSTGRES_PASSWORD,
port: 5432, port: 5432,

View File

@ -32,7 +32,7 @@ jest.mock("./settings", () => ({
user: "postgres", user: "postgres",
password: process.env.POSTGRES_PASSWORD, password: process.env.POSTGRES_PASSWORD,
database: "test", database: "test",
host: "localhost", host: process.env.POSTGRES_HOST ?? "localhost",
})) }))
describe("subscriptions", () => { describe("subscriptions", () => {