mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-07 22:02:56 +03:00
commands/git : fix function call
This commit is contained in:
@@ -549,7 +549,7 @@ func TestGitCommandUpstreamDifferentCount(t *testing.T) {
|
|||||||
{
|
{
|
||||||
"Can't retrieve pushable count",
|
"Can't retrieve pushable count",
|
||||||
func(string, ...string) *exec.Cmd {
|
func(string, ...string) *exec.Cmd {
|
||||||
return exec.Command("exit 1")
|
return exec.Command("exit", "1")
|
||||||
},
|
},
|
||||||
func(pushableCount string, pullableCount string) {
|
func(pushableCount string, pullableCount string) {
|
||||||
assert.EqualValues(t, "?", pushableCount)
|
assert.EqualValues(t, "?", pushableCount)
|
||||||
@@ -560,7 +560,7 @@ func TestGitCommandUpstreamDifferentCount(t *testing.T) {
|
|||||||
"Can't retrieve pullable count",
|
"Can't retrieve pullable count",
|
||||||
func(cmd string, args ...string) *exec.Cmd {
|
func(cmd string, args ...string) *exec.Cmd {
|
||||||
if args[1] == "head..@{u}" {
|
if args[1] == "head..@{u}" {
|
||||||
return exec.Command("exit 1")
|
return exec.Command("exit", "1")
|
||||||
}
|
}
|
||||||
|
|
||||||
return exec.Command("echo")
|
return exec.Command("echo")
|
||||||
@@ -606,7 +606,7 @@ func TestGitCommandGetCommitsToPush(t *testing.T) {
|
|||||||
{
|
{
|
||||||
"Can't retrieve pushable commits",
|
"Can't retrieve pushable commits",
|
||||||
func(string, ...string) *exec.Cmd {
|
func(string, ...string) *exec.Cmd {
|
||||||
return exec.Command("exit 1")
|
return exec.Command("exit", "1")
|
||||||
},
|
},
|
||||||
func(pushables []string) {
|
func(pushables []string) {
|
||||||
assert.EqualValues(t, []string{}, pushables)
|
assert.EqualValues(t, []string{}, pushables)
|
||||||
|
Reference in New Issue
Block a user