Skip to content

Commit

Permalink
Make concurrent test use different connections
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Nov 13, 2021
1 parent a15bcc3 commit 4ad6adf
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 4ad6adf

Please sign in to comment.