From c1787fa3937698907494d5887732b4fb654e5e36 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Sat, 14 Oct 2023 00:19:08 +0200 Subject: [PATCH] use postgres user in test compose (#18) --- docker-compose.yaml | 5 +++-- src/database/postgres.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index daa4b58..33b941e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,8 +6,9 @@ services: restart: always environment: POSTGRES_HOST_AUTH_METHOD: trust - POSTGRES_USER: arak - POSTGRES_PASSWORD: 123 + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: arak command: -d postgres volumes: - postgres:/var/lib/postgresql/data diff --git a/src/database/postgres.rs b/src/database/postgres.rs index 6f89262..4396fcb 100644 --- a/src/database/postgres.rs +++ b/src/database/postgres.rs @@ -499,7 +499,7 @@ mod tests { use super::*; fn local_postgres_url() -> String { - "postgresql://arak@localhost".to_string() + "postgresql://postgres@localhost".to_string() } async fn clear_database() {