Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
17 changes: 17 additions & 0 deletions changelog.d/unreleased/4800-4808.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
category: fixed
issues:
- 4800
- 4808
affected:
- tests/CodeIndex.Tests/ConsoleCaptureTests.cs
- TESTING_GUIDE.md
---

## English

- **Console capture restoration assertions no longer race parallel tests (#4800, #4808)** — the timeout regression test now snapshots and verifies `Console.Out` and `Console.Error` while holding the shared console ownership gate, preventing another test from replacing a writer during the assertion.

## 日本語

- **console capture の復元 assertion が並列テストと競合しなくなりました (#4800, #4808)** — timeout 回帰テストは共有 console ownership gate を保持した状態で `Console.Out` と `Console.Error` の snapshot 取得と検証を行うため、assertion 中に別のテストが writer を差し替える競合を防止します。
16 changes: 0 additions & 16 deletions changelog.d/unreleased/4800.fixed.md

This file was deleted.

2 changes: 1 addition & 1 deletion tests/CodeIndex.Tests/ConsoleCaptureTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ await ConsoleCapture.CaptureAsync(
}

[Fact]
public async Task CaptureAsync_TimeoutRestoresOnlyAfterCallbackObservesCancellation_Issue4749()
public async Task CaptureAsync_TimeoutRestoresOnlyAfterCallbackObservesCancellation_Issues4749And4808()
{
TextWriter originalOut;
TextWriter originalError;
Expand Down
Loading