bd sync: 2025-12-23 20:45:19

This commit is contained in:
Steve Yegge
2025-12-23 20:45:19 -08:00
parent 25fa0e5c25
commit 9c8761abc9
76 changed files with 7818 additions and 6841 deletions

View File

@@ -772,11 +772,13 @@ func TestSyncBranchIntegration_EndToEnd(t *testing.T) {
// Helper types for testing
func newTestSyncBranchLogger() (daemonLogger, *string) {
// Note: With slog, we can't easily capture formatted messages like before.
// For tests that need to verify log output, use strings.Builder and newTestLoggerWithWriter.
// This helper is kept for backward compatibility but messages won't be captured.
messages := ""
return newTestLogger(), &messages
logger := daemonLogger{
logFunc: func(format string, args ...interface{}) {
messages += "\n" + format
},
}
return logger, &messages
}
// TestSyncBranchConfigChange tests changing sync.branch after worktree exists