From a96fc562a7152d56ea57fca592ece0b45babf115 Mon Sep 17 00:00:00 2001 From: Micheal Wilkinson Date: Fri, 20 Mar 2026 22:04:30 +0000 Subject: [PATCH] test: clear env vars so tests use git config for repo URL --- internal/vociferate/vociferate_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/vociferate/vociferate_test.go b/internal/vociferate/vociferate_test.go index c1bd589..ffe178e 100644 --- a/internal/vociferate/vociferate_test.go +++ b/internal/vociferate/vociferate_test.go @@ -21,6 +21,10 @@ func TestPrepareSuite(t *testing.T) { func (s *PrepareSuite) SetupTest() { s.rootDir = s.T().TempDir() + // Clear environment variables that take precedence over git config + s.T().Setenv("GITHUB_SERVER_URL", "") + s.T().Setenv("GITHUB_REPOSITORY", "") + require.NoError(s.T(), os.MkdirAll(filepath.Join(s.rootDir, ".git"), 0o755)) require.NoError(s.T(), os.WriteFile( filepath.Join(s.rootDir, ".git", "config"),