Update logging
Change-Id: I13279582aa717edad5d56323866b941db1919404
diff --git a/server/git/git_test.go b/server/git/git_test.go
index bccf477..d3862ce 100644
--- a/server/git/git_test.go
+++ b/server/git/git_test.go
@@ -3,6 +3,7 @@
import (
"context"
"fmt"
+ "log/slog"
"os"
"path/filepath"
"testing"
@@ -10,6 +11,9 @@
)
func TestNewGit(t *testing.T) {
+ // Create logger for testing
+ logger := slog.New(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelInfo}))
+
// Test creating a new Git instance with default config
git := DefaultGit("/tmp/test-repo")
if git == nil {
@@ -23,7 +27,7 @@
"GIT_AUTHOR_NAME": "Test User",
},
}
- git = NewGit("/tmp/test-repo", config)
+ git = NewGit("/tmp/test-repo", config, logger)
if git == nil {
t.Fatal("NewGit returned nil")
}