Skip to content

Commit f7f2f9d

Browse files
committed
chore(cli): skip TestDotfiles if GPG_TTY is set to avoid hanging
1 parent f4c0eab commit f7f2f9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/dotfiles_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ import (
1717

1818
func TestDotfiles(t *testing.T) {
1919
t.Parallel()
20+
// This test will time out if the user has commit signing enabled.
21+
if _, gpgTTYFound := os.LookupEnv("GPG_TTY"); gpgTTYFound {
22+
t.Skip("GPG_TTY is set, skipping test to avoid hanging")
23+
}
2024
t.Run("MissingArg", func(t *testing.T) {
2125
t.Parallel()
2226
inv, _ := clitest.New(t, "dotfiles")

0 commit comments

Comments
 (0)