From aa8b0609a99b3388415b19c5ff62f060260e3159 Mon Sep 17 00:00:00 2001 From: Ivan Maximov Date: Fri, 7 Jul 2023 11:19:12 +0300 Subject: [PATCH 1/2] Fix UI tests --- .../Functional/DatabaseProviders/MySqlStorageProviderTests.cs | 1 + .../DatabaseProviders/PostgreSqlStorageProviderTests.cs | 1 + .../DatabaseProviders/SqlServerStorageProviderTests.cs | 1 + .../Functional/DatabaseProviders/SqliteStorageProviderTests.cs | 1 + 4 files changed, 4 insertions(+) diff --git a/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/MySqlStorageProviderTests.cs b/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/MySqlStorageProviderTests.cs index 6e7d4f69b4..e54e678a1e 100644 --- a/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/MySqlStorageProviderTests.cs +++ b/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/MySqlStorageProviderTests.cs @@ -13,6 +13,7 @@ public void register_healthchecksdb_context_with_migrations() var customOptionsInvoked = false; var hostBuilder = new WebHostBuilder() + .UseStartup() .ConfigureServices(services => { services.AddHealthChecksUI() diff --git a/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/PostgreSqlStorageProviderTests.cs b/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/PostgreSqlStorageProviderTests.cs index bdf2c041f3..75d4e346f0 100644 --- a/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/PostgreSqlStorageProviderTests.cs +++ b/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/PostgreSqlStorageProviderTests.cs @@ -14,6 +14,7 @@ public void register_healthchecksdb_context_with_migrations() var customOptionsInvoked = false; var hostBuilder = new WebHostBuilder() + .UseStartup() .ConfigureServices(services => { services.AddHealthChecksUI() diff --git a/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/SqlServerStorageProviderTests.cs b/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/SqlServerStorageProviderTests.cs index b6f988812f..8f04232dc7 100644 --- a/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/SqlServerStorageProviderTests.cs +++ b/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/SqlServerStorageProviderTests.cs @@ -13,6 +13,7 @@ public void register_healthchecksdb_context_with_migrations() var customOptionsInvoked = false; var hostBuilder = new WebHostBuilder() + .UseStartup() .ConfigureServices(services => { services.AddHealthChecksUI() diff --git a/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/SqliteStorageProviderTests.cs b/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/SqliteStorageProviderTests.cs index 95953eebc4..b58976df21 100644 --- a/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/SqliteStorageProviderTests.cs +++ b/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/SqliteStorageProviderTests.cs @@ -13,6 +13,7 @@ public void register_healthchecksdb_context_with_migrations() var customOptionsInvoked = false; var hostBuilder = new WebHostBuilder() + .UseStartup() .ConfigureServices(services => { services.AddHealthChecksUI() From 063382d0e73bd4fd01711c465875b883197a8efe Mon Sep 17 00:00:00 2001 From: Ivan Maximov Date: Fri, 7 Jul 2023 11:29:38 +0300 Subject: [PATCH 2/2] fix --- .../Functional/DatabaseProviders/InMemoryStorageProviderTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/InMemoryStorageProviderTests.cs b/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/InMemoryStorageProviderTests.cs index 6df4d35e05..f645dc753d 100644 --- a/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/InMemoryStorageProviderTests.cs +++ b/test/HealthChecks.UI.Tests/Functional/DatabaseProviders/InMemoryStorageProviderTests.cs @@ -14,6 +14,7 @@ public void register_healthchecksdb_context() var customOptionsInvoked = false; var hostBuilder = new WebHostBuilder() + .UseStartup() .ConfigureServices(services => { services.AddHealthChecksUI()