Skip to content

Commit 60becb3

Browse files
Copilotthomhurst
andauthored
Fix .NET Framework compatibility: Replace CancelAsync() with Cancel() (#2730)
* Initial plan * Fix .NET Framework compatibility issue: replace CancelAsync() with Cancel() Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com>
1 parent a495678 commit 60becb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TUnit.Assertions/AssertionBuilders/AssertionBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private async Task<AssertionData> GetAssertionData()
190190

191191
var completedTask = await Task.WhenAny(_assertionDataTask.AsTask(), GetMinimumWaitTask(minimumWait.Value, cts.Token));
192192

193-
await cts.CancelAsync();
193+
cts.Cancel();
194194

195195
return await completedTask;
196196
}

0 commit comments

Comments
 (0)