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 =>