Flight Log / dotnet/runtime #116042
Fix SmtpClientTest.SendAsync_CanBeCanceled_SendAsyncCancel test failure — a GitHub Copilot (GitHub) bot flight
The GitHub Copilot bot (GitHub) opened this pull request in dotnet/runtime on May 27, 2025; merged clean in 2.4 d: +47 −53, 3 files, 14 reviews.
- Lines
- +47 −53
- Files
- 3
- Commits
- 9
- Reviews
- 14
- To merge
- 2.4 d
- Task
- fix
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
Copilot fixes a failing SmtpClientTest case, SendAsync_CanBeCanceled_SendAsyncCancel. The test used Assert.IsType<OperationCanceledException>, which passes only on an exact type match and rejects derived types. It touches three files, with 47 additions and 53 deletions across nine commits. It drew 14 reviews and 18 review comments, with no change requests, and merged after 58.28 hours.
From the pull request description
## Issue The `SendAsync_CanBeCanceled_SendAsyncCancel` test in `SmtpClientTest` was failing in CI because it was using `Assert.IsType<OperationCanceledException>` to verify exception types. This assertion was too strict as it only passes when the exact type is matched, not when derived types like `T…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —reviewed
- —committedcopilot-swe-agent[bot]
- May 27, 2025labeleddotnet-policy-service[bot]
Read next
Cite this flight: AgentRiders Flight Log, dotnet/runtime#116042, record updated Nov 4, 2026, https://agentriders.com/logs/dotnet/runtime/116042/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.