aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/service_test.go
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2024-04-09 20:53:27 -0700
committerMax Resnick <max@ofmax.li>2024-04-15 21:50:00 -0700
commitcf7f32e12ca118e51723a87afee05770ea12c066 (patch)
tree6933a2b72e704d1d043014907dacdb7d7ff6ba9d /internal/admin/service_test.go
parent888cf9db02396c2bf093752ec76b4b9654110dd6 (diff)
downloadgo-git-server-cf7f32e12ca118e51723a87afee05770ea12c066.tar.gz
chore: logging/err cleanup
Diffstat (limited to '')
-rw-r--r--internal/admin/service_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/admin/service_test.go b/internal/admin/service_test.go
index 8931c9d..bbdab85 100644
--- a/internal/admin/service_test.go
+++ b/internal/admin/service_test.go
@@ -84,7 +84,7 @@ func TestInitServer(t *testing.T) {
// end config
t.Run("test reload config success", func(t *testing.T) {
- svc := NewService(destModelFile,
+ svc, _ := NewService(destModelFile,
destPolicyFile,
filepath.Join(tempRepoDir, "gitserver.yaml"),
tempRepoDir,
@@ -106,7 +106,7 @@ func TestInitServer(t *testing.T) {
}
})
t.Run("test reload config err", func(t *testing.T) {
- svc := NewService(destModelFile,
+ svc, _ := NewService(destModelFile,
destPolicyFile,
// TODO set abs path
filepath.Join(tempRepoDir, "gitserver.yaml"),
@@ -131,7 +131,7 @@ func TestInitServer(t *testing.T) {
})
t.Run("test an unitialized server config", func(t *testing.T) {
tempRepoDir := t.TempDir()
- svc := NewService(destModelFile,
+ svc, _ := NewService(destModelFile,
destPolicyFile,
// TODO set abs path
"gitserver.yaml",