Skip to content

Commit

Permalink
another lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Oct 19, 2021
1 parent b3baa04 commit ba06ece
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/executor/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,6 @@ func setCalledFalse() {
calledCheckPushPermission = false
}

func fakeExecCommand(command string, args ...string) *exec.Cmd {
calledExecCommand = append(calledExecCommand, true)
cs := []string{"-test.run=TestHelperProcess", "--", command}
cs = append(cs, args...)
cmd := exec.Command(os.Args[0], cs...)
cmd.Env = []string{"GO_WANT_HELPER_PROCESS=1"}
return cmd
}

func fakeCheckPushPermission(ref name.Reference, kc authn.Keychain, t http.RoundTripper) error {
calledCheckPushPermission = true
return nil
Expand Down

0 comments on commit ba06ece

Please sign in to comment.