From 8cb72dec777f6c9a348771be77469785a232ddd0 Mon Sep 17 00:00:00 2001 From: Smit Patel Date: Thu, 4 Aug 2022 14:28:57 -0700 Subject: [PATCH] Query: Split databases for filter/non-filter cases for bulk updates Using same database concurrently (from 2 different test classes) was causing time outs when running bulk command due to locking of tables --- .../FiltersInheritanceBulkUpdatesSqlServerFixture.cs | 2 ++ .../TPCFiltersInheritanceBulkUpdatesSqlServerFixture.cs | 2 ++ .../TPTFiltersInheritanceBulkUpdatesSqlServerFixture.cs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/FiltersInheritanceBulkUpdatesSqlServerFixture.cs b/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/FiltersInheritanceBulkUpdatesSqlServerFixture.cs index 9cdf5960def..f0022d03b97 100644 --- a/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/FiltersInheritanceBulkUpdatesSqlServerFixture.cs +++ b/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/FiltersInheritanceBulkUpdatesSqlServerFixture.cs @@ -5,6 +5,8 @@ namespace Microsoft.EntityFrameworkCore.BulkUpdates; public class FiltersInheritanceBulkUpdatesSqlServerFixture : InheritanceBulkUpdatesSqlServerFixture { + protected override string StoreName => "FiltersInheritanceBulkUpdatesTest"; + protected override bool EnableFilters => true; } diff --git a/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/TPCFiltersInheritanceBulkUpdatesSqlServerFixture.cs b/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/TPCFiltersInheritanceBulkUpdatesSqlServerFixture.cs index 09e027ec0ed..5b3cebbf0d5 100644 --- a/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/TPCFiltersInheritanceBulkUpdatesSqlServerFixture.cs +++ b/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/TPCFiltersInheritanceBulkUpdatesSqlServerFixture.cs @@ -5,5 +5,7 @@ namespace Microsoft.EntityFrameworkCore.BulkUpdates; public class TPCFiltersInheritanceBulkUpdatesSqlServerFixture : TPCInheritanceBulkUpdatesSqlServerFixture { + protected override string StoreName => "TPCFiltersInheritanceBulkUpdatesTest"; + protected override bool EnableFilters => true; } diff --git a/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/TPTFiltersInheritanceBulkUpdatesSqlServerFixture.cs b/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/TPTFiltersInheritanceBulkUpdatesSqlServerFixture.cs index 15462c6d89d..9b373bbbe85 100644 --- a/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/TPTFiltersInheritanceBulkUpdatesSqlServerFixture.cs +++ b/test/EFCore.SqlServer.FunctionalTests/BulkUpdates/TPTFiltersInheritanceBulkUpdatesSqlServerFixture.cs @@ -5,5 +5,7 @@ namespace Microsoft.EntityFrameworkCore.BulkUpdates; public class TPTFiltersInheritanceBulkUpdatesSqlServerFixture : TPTInheritanceBulkUpdatesSqlServerFixture { + protected override string StoreName => "TPTFiltersInheritanceBulkUpdatesTest"; + protected override bool EnableFilters => true; }