From a146f39ed183f9957f659505b74782a84e5183c0 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Mon, 26 May 2025 00:48:20 -0700 Subject: fix: make sure basePath is set if it's a fresh install --- internal/admin/model_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/admin/model_test.go') diff --git a/internal/admin/model_test.go b/internal/admin/model_test.go index 5317335..0453d84 100644 --- a/internal/admin/model_test.go +++ b/internal/admin/model_test.go @@ -233,6 +233,10 @@ func TestMgmtGitConfig(t *testing.T) { if err == nil { t.Fatal("expected an cloning repo didn't find one") } + if !errors.Is(err, ErrMgmtRepoNotFound) { + t.Fatalf("expected ErrMgmtRepoNotFound, got %v", err) + } + // check couldnt open file err _, err = loadConfigFromGit(gitDir, "dne.yaml") if err == nil { -- cgit v1.2.3