diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/QueryBugsTest.cs b/test/EFCore.SqlServer.FunctionalTests/Query/QueryBugsTest.cs index 3ba757e984d..03369fbe834 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/QueryBugsTest.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/QueryBugsTest.cs @@ -7040,7 +7040,11 @@ public enum BusinessType18346 [ConditionalFact] public virtual async Task Thread_safety_in_relational_command_cache() { - var contextFactory = await InitializeAsync(); + var contextFactory = await InitializeAsync( + onConfiguring: options =>((IDbContextOptionsBuilderInfrastructure)options).AddOrUpdateExtension( + options.Options.FindExtension() + .WithConnection(null) + .WithConnectionString(SqlServerTestStore.CreateConnectionString(StoreName)))); var ids = new[] { 1, 2, 3 };