Fix: TestGetAssignedStatus - Missing rootCtx initialization

Failure Type: Real
Root Cause: Test was not initializing the global rootCtx variable that getAssignedStatus depends on, causing it to return nil
Fix Applied: Added rootCtx initialization with proper cleanup using defer, matching the pattern used in other tests
Verification: All tests now pass (go test ./...)

Fixes bd-9f86-baseline-test

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-11-21 23:22:12 -08:00
parent 31eb257911
commit a517ec98aa
2 changed files with 62 additions and 27 deletions

View File

@@ -202,7 +202,10 @@ func TestGetAssignedStatus(t *testing.T) {
t.Fatalf("Failed to set issue prefix: %v", err)
}
// Set global store for getAssignedStatus
// Set global store and rootCtx for getAssignedStatus
oldRootCtx := rootCtx
rootCtx = ctx
defer func() { rootCtx = oldRootCtx }()
store = testStore
// Create test issues with different assignees