Added 4 new integration tests to ensure sync-branch workflow is robust: 1. TestSyncBranchConfigChange - Validates changing sync.branch config after worktrees exist. Tests smooth transition between branches. 2. TestSyncBranchMultipleConcurrentClones - Tests 3-way clone sync workflow. Simulates real multi-agent collaboration scenario. 3. TestSyncBranchPerformance - Validates commit overhead < 150ms. Current performance: avg 77ms (well within target). 4. TestSyncBranchNetworkFailure - Tests graceful handling of network errors during push. Ensures local commits succeed even when remote is unreachable. All tests pass: - cmd/bd (sync branch): PASS (5.361s) - internal/git: PASS (1.071s) - internal/syncbranch: PASS (0.312s) Test coverage now includes: config change handling, multiple concurrent clones, network failure recovery, performance validation, fresh setup, issue operations, error handling, sparse checkout. Closes bd-0e74 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 KiB
34 KiB