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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user