From 5e25474831d2ce51591950ecae6eaa7419fa9a07 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Wed, 6 Nov 2024 22:30:52 +0200 Subject: [PATCH] Changes to use database migrations during integration tests --- .../Common/Setup/LuminaApiFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/LuminaApiFactory.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/LuminaApiFactory.cs index 434c29c2..5c02727c 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/LuminaApiFactory.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/LuminaApiFactory.cs @@ -67,7 +67,7 @@ public class LuminaApiFactory : WebApplicationFactory, IDisposable { IServiceProvider scopedServices = scope.ServiceProvider; LuminaDbContext dbContext = scopedServices.GetRequiredService(); - dbContext.Database.EnsureCreated(); + dbContext.Database.Migrate(); } }); }