From e991992ab3b6a10721ea74da300312c16c157a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9E=D0=BB=D1=8F=20=D0=91=D0=B8=D0=B7=D1=8E=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0?= Date: Tue, 17 Dec 2024 17:53:30 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yaml | 2 +- DD.Persistence.IntegrationTests/WebAppFactoryFixture.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index b61ecf8..c4415dd 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -14,7 +14,7 @@ jobs: image: postgres # Provide the password for postgres env: - POSTGRES_HOST: postgres + POSTGRES_DB: persistence POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres # Set health checks to wait until postgres has started diff --git a/DD.Persistence.IntegrationTests/WebAppFactoryFixture.cs b/DD.Persistence.IntegrationTests/WebAppFactoryFixture.cs index 84c1a9e..18c0f98 100644 --- a/DD.Persistence.IntegrationTests/WebAppFactoryFixture.cs +++ b/DD.Persistence.IntegrationTests/WebAppFactoryFixture.cs @@ -24,7 +24,8 @@ public class WebAppFactoryFixture : WebApplicationFactory config.AddJsonFile("appsettings.Tests.json"); var dbConnection = config.Build().GetSection("DbConnection").Get()!; - connectionString = dbConnection.GetConnectionString(); + //connectionString = dbConnection.GetConnectionString(); + connectionString = "postgres://postgres:postgres@localhost:5442/persistence"; }); builder.ConfigureServices(services =>