From 4db35dbdb536fb4778aa81fd3aefdb47d3f27775 Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Sat, 24 Aug 2024 14:26:38 +0200 Subject: [PATCH] Remove unnecessary migrations in integration tests --- tests/WebApi.Tests.Integration/WebAppFactory.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/WebApi.Tests.Integration/WebAppFactory.cs b/tests/WebApi.Tests.Integration/WebAppFactory.cs index f5abe9f..cd057b4 100644 --- a/tests/WebApi.Tests.Integration/WebAppFactory.cs +++ b/tests/WebApi.Tests.Integration/WebAppFactory.cs @@ -33,10 +33,6 @@ public sealed class WebAppFactory : WebApplicationFactory, IAsync // Force application startup (i.e. initialization and validation) _ = CreateClient(); - using var scope = Services.CreateScope(); - await using var dbContext = scope.ServiceProvider.GetRequiredService(); - await dbContext.Database.MigrateAsync(); - _postgresRespawner = await PostgresRespawner.CreateAsync(_database.GetConnectionString()); }