Skip to content

Commit

Permalink
Make concurrent test use different connections (#26670)
Browse files Browse the repository at this point in the history
Closes #25815
  • Loading branch information
roji authored Nov 14, 2021
1 parent a15bcc3 commit b0eaace
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/EFCore.SqlServer.FunctionalTests/Query/QueryBugsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7040,7 +7040,11 @@ public enum BusinessType18346
[ConditionalFact]
public virtual async Task Thread_safety_in_relational_command_cache()
{
var contextFactory = await InitializeAsync<MyContext21666>();
var contextFactory = await InitializeAsync<MyContext21666>(
onConfiguring: options =>((IDbContextOptionsBuilderInfrastructure)options).AddOrUpdateExtension(
options.Options.FindExtension<SqlServerOptionsExtension>()
.WithConnection(null)
.WithConnectionString(SqlServerTestStore.CreateConnectionString(StoreName))));

var ids = new[] { 1, 2, 3 };

Expand Down

0 comments on commit b0eaace

Please sign in to comment.