Skip to content

Commit 695b790

Browse files
committed
avoid MacOS keychain dialog in integration tests
1 parent 57a5e9a commit 695b790

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/integration/integration_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ func TestMain(m *testing.M) {
9595
os.Unsetenv("GIT_COMMITTER_EMAIL")
9696
os.Unsetenv("GIT_COMMITTER_DATE")
9797

98+
// Avoid loading the default system config. On MacOS, this config
99+
// sets the osxkeychain credential helper, which will cause tests
100+
// to freeze with a dialog.
101+
os.Setenv("GIT_CONFIG_NOSYSTEM", "true")
102+
98103
err := unittest.InitFixtures(
99104
unittest.FixturesOptions{
100105
Dir: filepath.Join(filepath.Dir(setting.AppPath), "models/fixtures/"),

0 commit comments

Comments
 (0)