From ffa529b0e970857914453ae3c6ea25ed9ac08d39 Mon Sep 17 00:00:00 2001 From: Yuchao Date: Tue, 23 Nov 2021 10:39:59 +0800 Subject: [PATCH] update test case --- prow/pod-utils/clone/clone_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prow/pod-utils/clone/clone_test.go b/prow/pod-utils/clone/clone_test.go index d5d8e9d1d733..066016ef7b9f 100644 --- a/prow/pod-utils/clone/clone_test.go +++ b/prow/pod-utils/clone/clone_test.go @@ -425,7 +425,7 @@ func TestCommandsForRefs(t *testing.T) { fetchRetries, }, retryCommand{ - cloneCommand{dir: "/go/src/github.com/org/repo", command: "git", args: []string{"fetch", "https://github.com/org/repo.git", "master"}}, + cloneCommand{dir: "/go/src/github.com/org/repo", command: "git", args: []string{"fetch", "https://github.com/org/repo.git", "abcdef"}}, fetchRetries, }, cloneCommand{dir: "/go/src/github.com/org/repo", command: "git", args: []string{"checkout", "abcdef"}}, @@ -635,7 +635,7 @@ func TestCommandsForRefs(t *testing.T) { fetchRetries, }, retryCommand{ - cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"fetch", "https://github.enterprise.com/org/repo.git", "master"}}, + cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"fetch", "https://github.enterprise.com/org/repo.git", "abcdef"}}, fetchRetries, }, cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"checkout", "abcdef"}}, @@ -661,7 +661,7 @@ func TestCommandsForRefs(t *testing.T) { cloneCommand{dir: "/", command: "mkdir", args: []string{"-p", "/go/src/github.enterprise.com/org/repo"}}, cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"init"}}, retryCommand{ - cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"fetch", "https://github.enterprise.com/org/repo.git", "master"}}, + cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"fetch", "https://github.enterprise.com/org/repo.git", "abcdef"}}, fetchRetries, }, cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"checkout", "abcdef"}}, @@ -688,7 +688,7 @@ func TestCommandsForRefs(t *testing.T) { cloneCommand{dir: "/", command: "mkdir", args: []string{"-p", "/go/src/github.enterprise.com/org/repo"}}, cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"init"}}, retryCommand{ - cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"fetch", "--depth", "2", "https://github.enterprise.com/org/repo.git", "master"}}, + cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"fetch", "--depth", "2", "https://github.enterprise.com/org/repo.git", "abcdef"}}, fetchRetries, }, cloneCommand{dir: "/go/src/github.enterprise.com/org/repo", command: "git", args: []string{"checkout", "abcdef"}},