We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57a9b70 commit 70beb9cCopy full SHA for 70beb9c
test/EFCore.Relational.Tests/RelationalConnectionTest.cs
@@ -1101,8 +1101,9 @@ public async Task HandleTransactionCompleted_with_concurrent_ClearTransactions_i
1101
scope.Complete();
1102
1103
// Start the reset task first, which will yield and then try to reset
1104
- var resetTask = Task.Run(() =>
+ var resetTask = Task.Run(async () =>
1105
{
1106
+ await Task.Yield();
1107
// ResetState calls ClearTransactions which might race with HandleTransactionCompleted
1108
((IResettableService)connection).ResetState();
1109
});
0 commit comments