Time out stalled GitHub clones after ten minutes
Progress streams now stay open until a job ends, so a hung clone would otherwise hold its job and stream forever.
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ func TestGitCloneKeepsTokenOutOfArgsAndIgnoresHostCredentials(t *testing.T) {
|
||||
if _, err := exec.LookPath("git"); err != nil {
|
||||
t.Skip("git not installed")
|
||||
}
|
||||
cmd := gitClone("https://github.com/o/r", t.TempDir(), "ghu_secret")
|
||||
cmd := gitClone(t.Context(), "https://github.com/o/r", t.TempDir(), "ghu_secret")
|
||||
if strings.Contains(strings.Join(cmd.Args, " "), "ghu_secret") {
|
||||
t.Fatal("token appears in git arguments")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user