From 30c9d3a2b41a2aa8d61b31e69d255a9ece4b0811 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Mon, 26 May 2025 22:08:17 -0700 Subject: fix: resolve linting issue --- internal/admin/service_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/admin/service_test.go') diff --git a/internal/admin/service_test.go b/internal/admin/service_test.go index 2cf4e0d..11abd98 100644 --- a/internal/admin/service_test.go +++ b/internal/admin/service_test.go @@ -91,18 +91,18 @@ func TestInitServer(t *testing.T) { t.Run("test default config basePath", func(t *testing.T) { // Create a new temporary directory for this test testRepoDir := t.TempDir() - + // Create a service with mgmtRepo=true to trigger the default config path svc, err := NewService(destModelFile, destPolicyFile, "gitserver.yaml", // Non-existent file to trigger default config testRepoDir, true) - + if err != nil { t.Fatalf("Failed to create service: %v", err) } - + // Verify that basePath was correctly set in the default config if svc.Conf.basePath != testRepoDir { t.Errorf("Expected basePath to be %q, got %q", testRepoDir, svc.Conf.basePath) -- cgit v1.2.3