Skip to content

v3: finish the bar started in TestProgressBarTemplate - #259

Merged
cheggaaa merged 1 commit into
masterfrom
fix-template-test-leak
Nov 6, 2026
Merged

cheggaaa merged 1 commit into
masterfrom
fix-template-test-leak

Conversation

@cheggaaa

@cheggaaa cheggaaa commented Nov 6, 2026

Copy link
Copy Markdown
Owner

TestProgressBarTemplate starts a bar and never finishes it. The bar's writer keeps running into later tests and reads the terminalWidth global while TestPBMaxWidth replaces it, so go test -race -count=3 ./... fails (3 of 3 runs on master). With the bar finished, -race -count=5 passes 5 of 5 runs and -race -count=20 passes.

CI runs without -race, so it never saw this.

🤖 Generated with Claude Code

Its writer kept running into later tests and read the terminalWidth global while TestPBMaxWidth replaced it, so go test -race -count=3 failed.
@cheggaaa
cheggaaa merged commit a38af32 into master Nov 6, 2026
1 check passed
@cheggaaa
cheggaaa deleted the fix-template-test-leak branch November 6, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant