Skip to content

Commit 70beb9c

Browse files
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 57a9b70 commit 70beb9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/EFCore.Relational.Tests/RelationalConnectionTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,9 @@ public async Task HandleTransactionCompleted_with_concurrent_ClearTransactions_i
11011101
scope.Complete();
11021102

11031103
// Start the reset task first, which will yield and then try to reset
1104-
var resetTask = Task.Run(() =>
1104+
var resetTask = Task.Run(async () =>
11051105
{
1106+
await Task.Yield();
11061107
// ResetState calls ClearTransactions which might race with HandleTransactionCompleted
11071108
((IResettableService)connection).ResetState();
11081109
});

0 commit comments

Comments
 (0)