Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix .NET Framework compatibility issue: replace CancelAsync() with Ca…
…ncel()

Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com>
  • Loading branch information
Copilot and thomhurst committed Aug 4, 2025
commit 48346349b46d2addaeb8d3277a3bc3b19996e6b0
2 changes: 1 addition & 1 deletion TUnit.Assertions/AssertionBuilders/AssertionBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private async Task<AssertionData> GetAssertionData()

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

await cts.CancelAsync();
cts.Cancel();

return await completedTask;
}
Expand Down