Add report file retry helper tests - #10635
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds deterministic unit coverage for shared report-file retry behavior.
Changes:
- Covers success, retry, timeout-boundary, exception, and cancellation paths.
- Verifies invocation counts and fake-clock reads without real delays.
Show a summary per file
| File | Description |
|---|---|
test/UnitTests/Microsoft.Testing.Extensions.UnitTests/ReportFileWriterHelperTests.cs |
Adds comprehensive tests for RetryWhenIOExceptionAsync. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Balanced
🧵 Parallel-safety audit — PR #10635The only change in this PR is a new test file, Reviewed every test method and the private Nothing to flag for parallel-safety. Audited Re-run with
|
Adds deterministic unit coverage for
ReportFileWriterHelper.RetryWhenIOExceptionAsync.The tests pin immediate success, transient I/O retries, the strict timeout boundary, the final post-timeout invocation, non-I/O and cancellation propagation, exact invocation counts, and fake-clock read sequences without real-time sleeps.
Closes #10598