aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/model_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/model_test.go
parent888cf9db02396c2bf093752ec76b4b9654110dd6 (diff)
downloadgo-git-server-cf7f32e12ca118e51723a87afee05770ea12c066.tar.gz
chore: logging/err cleanup
Diffstat (limited to 'internal/admin/model_test.go')
-rw-r--r--internal/admin/model_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/admin/model_test.go b/internal/admin/model_test.go
index 85d6ed1..6f8531d 100644
--- a/internal/admin/model_test.go
+++ b/internal/admin/model_test.go
@@ -299,7 +299,7 @@ func TestRepoReconcile(t *testing.T) {
},
}
repoPath := filepath.Join(tempDir, fmt.Sprintf("%s.git", repo.Name))
- repo.ReconcileRepo(tempDir)
+ _ = repo.ReconcileRepo(tempDir)
if _, err := os.Stat(repoPath); errors.Is(err, fs.ErrNotExist) {
t.Fatal("expected repo to be created, but does not exist")
}
@@ -314,7 +314,7 @@ bare = true
t.Fatal(err)
}
// re-reconcile
- repo.ReconcileRepo(tempDir)
+ _ = repo.ReconcileRepo(tempDir)
content, err := os.ReadFile(tempConfigFile)
if err != nil {
t.Fatal(err)